Created
January 14, 2015 19:50
-
-
Save aoqfonseca/e22c70f8acf5d152fd9b to your computer and use it in GitHub Desktop.
Shell para converter um repositorio svn para git
This file contains hidden or 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
if [ ! -f ~/svn-migration-scripts.jar ]; then | |
wget https://bitbucket.org/atlassian/svn-migration-scripts/downloads/svn-migration-scripts.jar | |
mv svn-migration-scripts.jar ~/ | |
fi | |
java -jar ~/svn-migration-scripts.jar verify | |
mkdir -p ~/migracao | |
cd ~/migracao | |
git svn clone --stdlayout $1 $2 | |
cd $2 | |
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git | |
git svn fetch | |
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar sync-rebase | |
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment