If your authors file doesn’t need to be updated, you can skip to the next section.
git svn command includes an option called
--authors-prog, which points to a script that automatically transforms SVN usernames into Git authors. You’ll need to configure this script to accept the SVN username as its only argument and return a single line in the form of
Name (just like the right hand side of the existing authors file). This option can be very useful if you need to periodically add new developers to your project.
If you want to use the
--authors-prog option, create a file called
authors.sh option in
~/GitMigration. Add the following line to
authors.sh to return a dummy Git name and email for any authors that aren’t found in
Again, this will only generate a dummy name and email based on the SVN username, so feel free to alter it if you can provide a more meaningful mapping.