1/17/2010 - 8:00 AM

Git: migrate from svn to git

Git: migrate from svn to git

# source:

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 --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