Import from Subversion feed

Have a Subversion project you want to import into Git? Check out the guide by Jon Maddoxx:

http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/

Or check out the guide by Daniel Morrison:

http://daniel.collectiveidea.com/blog/2008/2/9/on-git-github

Or use git-svn:

 $ git-svn clone SVN_REPO_URL LOCAL_DIR

 $ cd LOCAL_DIR

 $ git remote add origin git@github.com:GITHUB_USERNAME/REPO_NAME.git

 $ git push origin master

Authors

When migrating a Subversion repository to Git, you can map the Subversion users to Git users. You have to create an authors file which contains the mappings:

fesplugas = Francesc Esplugas <fesplugas@intra....bles.net>

Then clone the subversion repository with the previously created authors-file:

$ git-svn --authors-file=/home/fesplugas/.authors clone svn://intraducibles.net/var/svn/rails/plugins/something_fu something_fu
Last edited by elazar, 9 days ago
Versions: