Last active
August 29, 2015 14:12
-
-
Save wizardjedi/07484531c5bc21958b73 to your computer and use it in GitHub Desktop.
svn to 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
# install git-svn | |
$ sudo apt-get install git-svn | |
# create author map | |
$ svn log svn://svn.example.com/repository/path/ | sed -ne 's/^r[^|]*| \([^ ]*\) |.*$/\1 = \1 <\[email protected]>/p' | sort -u > author-map | |
$ git svn init svn://svn.devel.a1s/sms_traffic/trunk/ --no-metadata | |
$ git config svn.authorsfile author-map | |
$ git svn fetch | |
# git add remote | |
$ git remote add origin git://url | |
$ git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment