Skip to content

Instantly share code, notes, and snippets.

@schmich
Created August 18, 2016 11:19
Show Gist options
  • Save schmich/dec1c39f90bb425b01a909f9592bbc1c to your computer and use it in GitHub Desktop.
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 <[email protected]>
john.smith = John Smith <[email protected]>

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 [email protected]: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