Moving a repo from SVN to Git

This requires installing git-svn and assumes the new Git repo is empty. It only moves the trunk.

  • Create your empty Git repository on what ever server you're using
  • In a temporary directory:
    git svn clone http://svn/repo/here/trunk
  • Hook your newly converted repository to your server Git repo:
    git remote add origin ssh://git@bitbucket.org/my-acount/my-repo.git
  • Push the files and history to the server:
    git push -u origin --all