GIT-CHECK-MAILMAP(1)
π GIT-CHECK-MAILMAP(1) β the git manual, but make it group chat
okay so bestie, welcome to GIT-CHECK-MAILMAP(1), straight out of the Git Manual. this one's a little cutie: it's the command that tells you somebody's actual canonical name and email instead of whatever chaotic string they typed that one time. let's get into it β¨
π NAME
git-check-mailmap β show canonical names and email addresses of contacts π
like, the whole vibe is: you give it a contact, it gives you back the real, official, canonically-correct version. no cap.
π¦ SYNOPSIS
git check-mailmap [<options>] <contact>...
that's it. that's the whole thing. slay.
πΈ DESCRIPTION
for each "Name <user@host>", "<user@host>", or "user@host" that you hand it β either from the command line, or from standard input (that's the --stdin situation) β it looks up that person's canonical name and email address (peep "Mapping Authors" below, iykyk). found it? prints it π
. didn't find it? prints your input exactly as-is, no judgement, no drama. π«Ά
so basically: three flavors of contact string, and it wraps them all up and gives them their main character canonical identity.
β¨ OPTIONS β¨
--stdinβ reads contacts from the standard input, one per line, and it does this after it's exhausted all the contacts you already gave it on the command line. so command-line contacts go first, then it opens up stdin for the rest. π--mailmap-file=<file>β on top of any mailmap files that are already configured, read this specific mailmap file too. and here's the tea: entries in this file take precedence over entries in either the default mailmap file or any configured mailmap file. so it wins. it's the main character of mailmap files. π--mailmap-blob=<blob>β like--mailmap-file, except it treats the value as a reference to a blob in the repository instead of a file on disk. and if you specify both--mailmap-fileand--mailmap-blob, then the entries in--mailmap-filewill take precedence. π
π OUTPUT
for each contact, you get a single line out, terminated by a newline. periodt. π
- if the name is provided, or it's known to the mailmap β it prints
"Name <user@host>" - otherwise β it prints only
"<user@host>"
that's the whole output contract. clean, minimal, iconic.
β CONFIGURATION
wanna specify a custom .mailmap target file or object? go check out mailmap.file and mailmap.blob in git-config(1) β they'll tell you exactly how. π₯
π§ MAPPING AUTHORS
see gitmailmap(5). that's where the actual mapping sorcery lives, bestie. go look. π
π GIT
part of the git(1) suite π
ngl, this one's short and sweet and honestly kind of underrated. go make your commit history look like it was written by real, correctly-named humans. π β¨
βΏ thank you for reading, mwah βΏ this lil page came from Git 2.56.0, dated 2026-09-27. now go fix somebody's name in your git log πΈπ¦π
π¦ where this page comes from
- arch rolling: git 2.56.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms