Source: https://rhodecode.com/blog/svn-to-git-migration-a-complete-guide-without-losing-history/
Basics only, but this works ( 2026 )
svn log --quiet | grep "^r" | awk '{print $3}' | sort | uniq > authors.txt
Transform this into a mapping file (authors-map.txt):
jsmith = John Smith <john.smith@company.com>
mjones = Mary Jones <mary.jones@company.com>
devteam = Development Team <dev@company.com>
git svn clone https://svn.company.com/repo/project \
--authors-file=authors-map.txt \
--trunk=trunk \
--branches=branches \
--tags=tags \
--prefix=svn/ \
target-directory
Leave a Reply