Created
April 4, 2011 04:00
-
-
Save harperreed/901116 to your computer and use it in GitHub Desktop.
A simple bundle of scripts to migrate from svn to git for instance:
your repo path is:
/trunk/app/vendors/ you would do:
sh strip_svn.sh svn.dump trunk/app/vendors vendors.dump this would create a dump file called vendors that is just the comm
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
svnadmin create $1_repo | |
cat $1 |svnadmin load $1_repo |
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 svn --authors-file=authors.txt clone file:///$1/$2_repo/ $2_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
cat $1.dump | svndumpfilter include $2 >$3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment