My git repository is imported from svn. And the username in git log is something like 0129. I want to override it with my setting like John instead of 0129. And I find this:
Is there a way to override a git author's display name in local repository config?
The .mailmap solution works well in git shortlog, but git log still give the same output. Any suggestions?
EDIT
I’ve check Change the author and committer name and e-mail of multiple commits in Git too but I don’t want to run git filter branch every time after git svn rebase.
You need to specify the mapping of authors in the moment of migrating from svn to git, using git-svn:
And the users.txt file is like this:
The first part of the equal is the svn user name, the second part is the git name.
After this you need to do normal clone to leave all the svn stuff behind: