Skip to content

Instantly share code, notes, and snippets.

@schmich
Created August 18, 2016 11:19
Show Gist options
  • Select an option

  • Save schmich/dec1c39f90bb425b01a909f9592bbc1c to your computer and use it in GitHub Desktop.

Select an option

Save schmich/dec1c39f90bb425b01a909f9592bbc1c to your computer and use it in GitHub Desktop.

Create authors.txt with a mapping from svn users to git users:

jane.doe = Jane Doe <jane@email.invalid>
john.smith = John Smith <john@email.invalid>

Clone the svn repo using git svn:

git svn clone -A authors.txt svn://repo.site.foo/project/trunk project-git

Add git remote and push:

cd project-git
git remote add git@github.com:user/project
git push -u origin master

More details in the git svn documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment