svn2git – How To – svn2git not found

I have tried to move a svn repo to git thismorning and have been having great trouble.

Firstly, I work from a Mac.  This is not by choice, but was my only option.  It was that or paper and pen..

Now I have been working here for a while I have a linux build in the pipeline, soon as debts are paid to the company.  I will migrate to Ubuntu, YAY!

So why are you here? Because you are struggling to get your svn over to git.  Well mine is currently running, lets hope it works.

You tried to

sudo gem install svn2git

but that failed. Well that gem is no longer available on github.  You can build your own though.

git clone git://
cd svn2git
rake gem
sudo gem install pkg/svn2git…

The next bit got me, it says to

svn2git svn://yourrepo

BUT, command could not be found.

I found it in /var/gems/1.8/bin/svn2git, so try

/var/gems/1.8/bin/svn2git svn://yourrepo

This worked for me.  You can include an authors file and all that hooha, but you will find if you provide an authors file, you must include ALL authors.  My repo is about 6 months old and has seen many contributors, I doubt I will get them all.  If you forget one, it fails and you must start again with the author added into the authors file.

Less details here

Posted on June 2, 2009 at 11:59 pm by Jordan Carter · Permalink
In: Server Config, Web Development · Tagged with: 

2 Responses

  1. Written by Lloyd
    on November 26, 2009 at 10:50 am

    sudo gem install svn2git –source (taken from
    ln -s /var/lib/gems/1.8/bin/svn2git /usr/bin/svn2git

    Should make things easier.

  2. Written by Lloyd
    on November 26, 2009 at 10:50 am

    woops should be sudo ln -s /var…

Leave a Reply