- Get authors:
svn log --quiet http://path/to/root/of/project | grep -E "r[0-9]+ \| .+ \|" | cut -d'|' -f2 | sed 's/^ //' | sort | uniq
- Make an authors.txt file containing, e.g.,
author = Name LastName <[email protected]>
author2 = Name2 LastName2 <[email protected]>
- Make a directory to clone your svn repo
mkdir repo
cd repo
- Clone your repo using one of the flavors here: https://github.com/nirvdrum/svn2git#initial-conversion
remember to add --authors ../authors.txt
at the end of the command, e.g.:
svn2git -v svn://path/to/root/of/project --trunk / --nobranches --notags --authors ../authors.txt
(Note that --trunk / --nobranches --notags
replaces --rootistrunk
which seems broken, see nirvdrum/svn2git#127)