Skip to main content

Interested in sponsoring the site? [find out more]

blog title image

2 minute read - Java For Testers

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

If you like this content then you might be interested in my Patreon Community. I create exclusive content multiple times a week. Gain access to Patreon only content and online training courses for as little as $1 per month. Learn more about the EvilTester Patreon Community.

<< How to install Bonobo Git Server On Windows
What is Boundary Value Analysis? Software Testing Technique explained with real world examples. >>