Monday, January 16, 2012

svn2git

Nothingmuch's Migrating from Subversion to Git worked for me for two SVN repos that I'm actively working on.

Quick notes:

yum install git-svn
git svn clone --prefix=svn/ --stdlayout --authors-file=authors.txt 
git svn-abandon-fix-refs
git svn-abandon-cleanup
This makes a clean git repo complete with tags, branches, and history. Now set the "central" repo location :
git remote add origin 
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
finally, push it up to the server :
git push origin master

No comments: