Created
September 24, 2009 07:13
-
-
Save jbgutierrez/192566 to your computer and use it in GitHub Desktop.
Migrate SVN repository with git-svn
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
git config --global svn.addAuthorFrom true | |
git config --global svn.useLogAuthor true | |
git svn clone NEW_URL new | |
git svn clone ORIGINAL_URL original | |
cd original | |
git push ../new/.git master:refs/heads/original | |
cd ../new | |
git filter-branch --msg-filter 'sed -e /^git-svn-id:/d' original | |
echo `git rev-list original | tail -1` `git rev-list master | tail -1` >> .git/info/grafts | |
git merge original | |
git svn dcommit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment