This is an old revision of the document!
importing an svn repository
To get in the right frame of mind, don't think of exporting your entire svn repository, but rather export project by project. Export the trunk of your projects and forget about the branches. If you need data from the branches, merge it first.
- create a text file somewhere (~/Desktop/users.txt) to map the svn users to git users
jdoe = John Doe <jdoe@example.com>
- create a temporary project directory, and change to it
mkdir myproject_tmp cd myproject_tmp
- initialize an empty git repository
git svn init http://host/path/to/your/svn/repo/project/trunk --no-metadata
- set up the user file for mapping
git config svn.authorsfile ~/Desktop/users.txt
- import the svn repository
git svn fetch
- change up one directory, and clone this newly created repository (this cleans up all svn stuff)
cd .. git clone myproject_tmp myproject
- the myproject_tmp directory can now be removed, and the origin remote
rm -Rf myproject_tmp cd myproject git remote rm origin