Migrating from SVN to Git

20 August 2019 Link

On This Page


How To

To migrate from SVN to Git I used the svn2git tool from github. It is a ruby based tool. Here are the steps:

  1. See this page here to install svn2git.
    1. Make sure git,git-svn and ruby are installed (All of them should be in the path variable as well)
    2. Install svn2git using rubygems like:
    gem install svn2git
  2. Start the svnserver. This is needed since svn2git cannot access the database directly if it is beyond a certain svn version:
    svnserve -d -r "C:\My\SVN\Repo\containing\directory" 
  3. Go to the directory where you want to create the git repository for this svn repository
  4. Issue the following command there
    svn2git svn://localhost/reponame

Thats it!

See Also