Created
June 7, 2012 19:18
-
-
Save killfill/2890976 to your computer and use it in GitHub Desktop.
SVN -> GIT Migration
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
ORIG=http://repo | |
TRUNK=branches/my_trunk | |
1) In the svn project: | |
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt | |
2) Edit author names | |
3) git svn clone $ORIG -A ../authors-transform.txt --no-metadata --trunk $TRUNK | |
Note: git saves branched data in 'git for-each-ref' or 'git branch -r' ... | |
4) git svn show-ignore > .gitignore | |
6) Checkout from the created repo, to get a clean one | |
7) Push to the --bare git repo! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment