SVN to GIT migration

2013-12-18

_config.yml

The following script will automate svn to git migration. Save this in your svn directory svn2git.sh

  1. Clone the svn repository with “git svn” command e.g. git svn clone [SVNProjectRootDirectory] -T [TrunkDirectoryName] -b [BranchDirectoryName] -t [TagDirectoryName]
  2. Loop through all the remote branches/tags and check them out to local respectively.
  3. Push all local branches/tags to the new repository.

USAGE:

svn2git.sh [GitRepositoryUrl]  [SvnRepositoryUrl]   [TrunkDirectoryName]   [BranchDirectoryName]   [TagDirectoryName]

Happy Coding! 😇