svn to git conversion

I am trying to convert a SourceForge project from Subversion to Git. According to some Googling, it should be possible to use this command:

git svn clone PROJECT.git

Where PROJECT is the project name at SourceForge, to get a SVN project checked out into a local git repository.

  • Git/gitolite: moving repos after setting up gitolite
  • squash more then two commits in sourcetree?
  • git workflow for highly audited and changed controlled environments
  • How do you delete a remote git branch “properly”, a.k.a. updating the remote branch list for all users?
  • Do you need to create a branch to check out a specific git revision?
  • How can I preview a merge in git?
  • However this just gives the following error message:

    Initialized empty Git repository in /home/user/git/PROJECT.git/.git/
    Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/SVN/ line 584.
    XML data was not well-formed:  at /usr/bin/git-svn line 1385

    I am using Kubuntu 8.10 and Git is version

    I found a bug reported on Fedora that seem to be similar, but it has not been resolved, so I do not know where the problem is. Am I using the command incorrectly, or is it a bug?

  • How do I get `git clone --recursive` to recreate submodules' remotes and branches?
  • Move an SVN respository when the server is dead
  • Revert to last stable commit without losing newer commits
  • Automate git bisect for MSBuild/NUnit/.NET/Windows batch commands in msysgit?
  • Github commit message tagging
  • Remove a file from git locally, but not on remote
  • 3 Solutions collect form web for “svn to git conversion”

    From a svn project page it looks like you are using the wrong URL – try:

    git svn clone PROJECT.git

    I just successfully checked one out (with git 1.6.2 on OS X 10.5) with:

    git svn clone ok.git

    I had the same problem, and it turns out that I had just rebooted and needed to ssh-add my keys back in. Try ssh’ing into the box that git-svn is trying to connect to and see what error you get.

    Try a tool called svn2git. Read here for details:

    Git Baby is a git and github fan, let's start git clone.