Saturday, 18 April 2009

really convert your SVN to GIT with one script (tags included)

Having to convert some SVN repositories to GIT, Misha pointed me to this recipe that was quite what I needed to convert svn tags to real tags.

There was some more typing involved and I hate typing, plus I had to deal with a non standard SVN layout that by experience I think it's like a second standard. So I included all the hints found there and somewhere else in a "one click" script that tries to do everything automatically. Since it's automatic you might end up with something close but not exactly as you need, so feel free to tweak as much as you want (as I did with Frank's recipe ;) ).

You can download the script here and run it
sh -r path/to/svn/repo -a path/to/authorsfile

enjoy ;)


  1. Just to let you know that there is a small typo in your script: "tpur" should be "tput". For the rest, your work is very much appreciated! I'm in the preparation phase of migrating a set of long-lived SVN repositories to Git and your script is very welcome here.


  2. Thanks, I'll fix it when I have time. Actually it was asked me to pack it for debian... let's see if I have all that time :)