Migrating SVN to Git with Branches
In my previous post I did a simple migration of a Subversion project to Git. I didn't want to keep any branches or history so purposely got rid of the history - it was more of a copy than a proper migration. This time I will show you how to pull across some branches, and check that your commit history survives. Instead of starting with an export of the SVN project, we can use a Git tool designed for Subversion. Run this command to tell Git where your SVN repo is, and a little about its structure: git svn init http://svn.example.com/subversion/Project ↩ --prefix svn/ -T trunk --b=branch --t=tag Initialized empty Git repository in C:/tmp/Project/.git/ My repository had slightly odd names for the branches and tags folders so I had to use the --b and --t flags tell Git what where to look. Next you can associate any Subversion accounts with the new Git logins. To do this, create an authors.txt file, formatted like this: svn_username = Git Use...