Created
January 17, 2010 08:00
-
-
Save bigsan/279283 to your computer and use it in GitHub Desktop.
Git: migrate from svn to git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ | |
mkdir my_blog_tmp | |
cd my_blog_tmp | |
# --no-metadata, tells GIT to leave all the SVN details behind (not the commit log) | |
git-svn init http://code.yoursite.net/my_blog/trunk/ --no-metadata | |
# remap all the SVN users to GIT users when it sucks down the source and history | |
git config svn.authorsfile ~/Desktop/users.txt | |
git-svn fetch | |
# leaving behind all the SVN cruft that was there to support the git-svn stuff | |
git clone my_blog_tmp my_blog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment