Skip to content

Instantly share code, notes, and snippets.

@wizardjedi
Last active August 29, 2015 14:12
Show Gist options
  • Save wizardjedi/07484531c5bc21958b73 to your computer and use it in GitHub Desktop.
Save wizardjedi/07484531c5bc21958b73 to your computer and use it in GitHub Desktop.
svn to git
# 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