Skip to content

Instantly share code, notes, and snippets.

@yongkangchen
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yongkangchen/3d9ab9701cf317a7900e to your computer and use it in GitHub Desktop.
Save yongkangchen/3d9ab9701cf317a7900e to your computer and use it in GitHub Desktop.

$ svn log --xml | grep author | sort -u | perl -pe 's/.>(.?)<./$1 = /' > users.txt

$ vi users.txt

$ git svn init ${svn_url} --no-metadata

$ git svn fetch --authors-file=users.txt

$ vi .gitignore

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