Subversion to Git
I have a Subversion project that I’m migrating to use Git, but I don’t want to loose the history if possible. I found these steps and they mostly worked for me with one exception (below):
https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git
The only problem was during the export I got the error message:
Author: (no author) not defined in authors file
After a bit of searching I found this workaround on Guy Rutenberg site: https://www.guyrutenberg.com/2011/11/09/author-no-author-not-defined-in-authors-file/
The workaround from his site which worked for me. I'll quote his short blog post in full in case it ever goes away:
I came across the following error message
Author: (no author) not defined in authors file
when I tried to import an SVN repository (Open Yahtzee‘s) to Git using git svn and I specified an authors file (using -A). Indeed, the first commit to the svn (which was done using cvs2svn) had no username for the commiter. Apperantly the workaround is to add the following line to your author file.
(no author) = no_author <no_author@no_author>
I tried also doing the same without an email address, but it just didn’t work. It seems Git requires that all authors have an email address.