How to get mailmap to work and record contributions in relevant user's profile?

Git mailmap is used for patching / correcting emails of a particular contact in git. It replaces and corrects info in git log, etc. How to get github to record contributions to the right person’s profile using the mailmap to get the correct email address to record contributions to?

1 Like

Hi @meetmangukiya. Thanks so much for reaching out on the GitHub community.

Unfortunately at the present time, GitHub does not support using mailmap files. We do have an open feature request for this, and I’ve added your post to this. You are also welcome to submit feedback directly through our feedback form.

The only way to update the contributor details in your commits is to rewrite git history, which we generally don’t recommend, particularly if your repo has multiple contributors. However, we do have a guide on doing this: Changing author info.