Convert SVN to Github
To convert a SVN to GIT, keeping the history.
1. Setup a "authors.txt" file containing one line a author: SVN_NAME = GIT_NAME <email@adress>
This will map the SVN user name with the Github user accounts and email.
2. git svn clone $SVN –no-metadata -A authors.txt
The will create a local Git repository with all the revisions of the SVN.
3. git remote add origin git@github.com:Account/Repos
You must be in the local repository and have created a brand new repository "Repos" with your account "Account".
4. git push -u origin master
To push the very first commits.
Fri 15 Mar 2013 12:05:59 PM CET
- permalink
-
-
http://sebastian.formzoo.com/2010/11/04/3-steps-convert-svn-dump-to-git/