QA
Senior LevelGit & GitHub

How does the .mailmap file sanitize duplicate author names and email addresses in git log?

❓ Interview Prompt: Explain author name canonicalization using root .mailmap file, mapping historical typos and email variations to canonical team identities.

A root .mailmap file maps historical author email variations and typos to canonical author names and emails across team commit histories without rewriting commit hashes.

Code Implementation Example

ini
Alice Smith <alice@company.com> <alice@personal.com>
💡Canonicalizing historical author names and emails using .mailmap.
🎯 Interview Key Takeaway

Use a root .mailmap file to map historical author typos and email variations to canonical identities in git log output.

#.mailmap#Author Mapping#History Sanitization#Senior
Back to all Git & GitHub Questions→

More Git & GitHub Interview Questions

Beginner LevelGit & GitHub

Compare git rebase versus git merge and explain how git bisect finds regressions.

Beginner LevelGit & GitHub

What is the difference between git init and git clone?

Beginner LevelGit & GitHub

What are the Three Trees in Git (Working Directory, Staging Area / Index, Commit History)?