Last active
August 29, 2015 14:25
-
-
Save tkhduracell/59b59a6255edc83b96db to your computer and use it in GitHub Desktop.
Migrate SVN to Git, based on https://www.atlassian.com/git/tutorials/migrating-overview/
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
COLL=Main | |
PROJ=Installer | |
DEST=mycomp_installer | |
REMOTE=mycomp/installer | |
cd ~/GitMigration | |
git svn clone --trunk=/ --authors-file=authors.txt --username=Filip http://svn.mycomp.com/svn/$COLL/$PROJ $DEST | |
cd $DEST | |
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git --no-delete | |
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git --no-delete --force | |
git remote add origin [email protected]:$REMOTE.git | |
git push -u origin --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment