Convert a Subversion repository to Git

  • To retain all branches you can try the svn2git tool. However, this tool has some bugs.
  • To only import the trunk (with complete history): git svn clone http://host/svn/...
  • Create a .gitignore after the conversion.
  • Turn the folder into a git repository as described here.
Over 13 years ago