svn-repo=url/path/to/svn/repo
dest-repo-name=my-repo
svn checkout ${svn-repo} working-folder
cd working-folder
svn log --xml --quiet | grep author | sort -u | \\n perl -pe 's/.*>(.*?)<.*/$1 = /' > authors.txt
Edit each line of authors.txt file to format of:
johndoe = John Doe <[email protected]>
- git svn clone can take a long time depending on repo and network speed, perhaps 60 minutes or more.
- Examine your SVN repo trunk, branches, tags naming conventions, and define runk, branches, tags arguments as needed
- In the example below, the naming convention used inconsistent upper/lower case
git svn clone --trunk=/Trunk --branches=/branches --tags=/Tags --authors-file=authors.txt ${svn-repo} ${dest-repo-name}
git-repo=path/to/remote/git/repo
git remote add origin ${git-repo}
git push -u origin --all
git push --tags