git-svn not a git command?

Cristián Romo picture Cristián Romo · Feb 9, 2009 · Viewed 66.1k times · Source

While attempting to get an old svn dump of a project under git control, I ran into an interesting problem. Whenever I run git svn, I get an error saying it isn't a git command, yet there is documentation for it that I can pull up using git help. Is there something wrong with my install, or am I just missing something here?

Edit: I should probably also mention that I am running msysGit version 1.6.1.9.g97c34 under Windows XP, and the error I get is:

$ git svn 
git: 'svn' is not a
git-command. See 'git --help'.

Did you mean one of these?
        fsck
        show

Answer

hacintosh picture hacintosh · Feb 9, 2009

I just check on my newly installed ubuntu box and it wasn't installed even with git-core installed. A simple:

sudo apt-get install git-svn

or your distro equivalent should fix it.