SVN to GIT migration


_config.yml The following script will automate svn to git migration. Save this in your svn directory

  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: [GitRepositoryUrl]  [SvnRepositoryUrl]   [TrunkDirectoryName]   [BranchDirectoryName]   [TagDirectoryName]

Happy Coding! 😇