Difference between revisions of "Migrate SVN to Git"
(Created page with 'This document describes how to migrate an SVN repository to git. Most repositories are already migrated so this is mostly for historical reference. == Init git repository == Cr...')
|Line 36:||Line 36:|
Latest revision as of 11:04, 26 March 2012
This document describes how to migrate an SVN repository to git. Most repositories are already migrated so this is mostly for historical reference.
Init git repository
Create a temp work area.
Init the git repository. If your svn repo does not have the standard trunk branches and tags dirs you shouldnt use the --stdlayout. You can also use -T trunk -b branches -t tags.
Create user mapping
Start with creating a users.txt file where the svn users are mapped to an email address for git.
Connect the user mapping
Connect the users.txt to the empty git repository so users are remapped.
Fetch SVN repository
This might take some time.
Upload the Git repository
Now we can create a bare repository and upload it to dev.alpinelinux.org/gitroot.