Skip to content

Instantly share code, notes, and snippets.

@linkarys
Last active December 28, 2015 15:29
Show Gist options
  • Save linkarys/7521567 to your computer and use it in GitHub Desktop.
Save linkarys/7521567 to your computer and use it in GitHub Desktop.
svn-to-git
# get svn user list
svn log -q svn_repository | grep -e '^r' | awk 'BEGIN {FS = "|" }; {print $2}' | sort | uniq
# create a users.txt:
old_username = new_usename <user_email>
# svn to git
git svn clone svn_repository --authors-file=users.txt --no-metadata -s git_fold
@xinju
Copy link

xinju commented Nov 18, 2013

This is really cool!

@linkarys
Copy link
Author

very happy to see that :D

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