Skip to main content

2 minute read - Java For Testers Git Subversion

How to convert Svn to Git

Jan 22, 2019

TLDR; Using Visual SVN, svnserve and local SVN repositories I was able to easily convert SVN to Git on Windows.

I hit every error possible when converting SVN to GIT. I eventually figured out the simplest way to avoid errors during the conversion process.

Migrate SVN to Git from local file repositories

To migrate from SVN to GIT I found it most reliable to use a local svn server, having migrated from remote svn using an svn dump file. then using svnserve to allow conversion using git svn over the svn protocol.

svnserve -d --foreground -r .
  • then I can use git svn to clone the repo with the svn protocol
  • “git svn clone svn://127.0.0.1/my-repo -s”
  • then I can add a remote server and push it to my local repo
    • git remote add origin http://mygitserver/Bonobo.Git.Server/my-repo.git
    • git push origin master -u

This avoids all errors like cpan core, svn file format versions above 1.6, malformed xml over http, slow http connections.

This just works.

Step By Step Video Showing Conversion Process

Watch on YouTube


You will need a Github account to comment. Or you can contact me with your comment.

I reserve the right to delete spam comments e.g. if your comment adds no value and its purpose is simply to create a backlink to another site offering training, or courses, etc.