Created
April 22, 2013 07:35
-
-
Save rohityadavcloud/9072b1250b7d2207bb5c to your computer and use it in GitHub Desktop.
Convert svn repo to 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
- Get authors file: | |
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt | |
- Fix the authors file with alias = Name <[email protected]> | |
- Convert! | |
mkdir repo && cd repo | |
git svn init repo --no-metadata | |
git config svn.authorsfile <path to authors file> | |
git svn fetch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment