Created
June 19, 2010 18:30
-
-
Save jbgutierrez/445126 to your computer and use it in GitHub Desktop.
Migración de servidor subversion con 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
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 | |
# si se para la migración | |
git checkout -f original | |
git rebase master | |
git checkout master | |
git merge original | |
git svn dcommit | |
## | |
# Referencias | |
# http://git.or.cz/gitwiki/GraftPoint | |
# http://xmleye.wordpress.com/2008/10/13/recuperando-repo-svn-desde-clon-git-svn/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment