6 gitmailmap - Map author/committer names and/or E-Mail addresses
10 $GIT_WORK_DIR/.mailmap
16 If the file `.mailmap` exists at the toplevel of the repository, or at
17 the location pointed to by the `mailmap.file` or `mailmap.blob`
18 configuration options (see linkgit:git-config[1]), it
19 is used to map author and committer names and email addresses to
20 canonical real names and email addresses.
26 In the simple form, each line in the file consists of the canonical
27 real name of an author, whitespace, and an email address used in the
28 commit (enclosed by '<' and '>') to map to the name. For example:
30 Proper Name <commit@email.xx>
33 The more complex forms are:
35 <proper@email.xx> <commit@email.xx>
37 which allows mailmap to replace only the email part of a commit, and:
39 Proper Name <proper@email.xx> <commit@email.xx>
41 which allows mailmap to replace both the name and the email of a
42 commit matching the specified commit email address, and:
44 Proper Name <proper@email.xx> Commit Name <commit@email.xx>
46 which allows mailmap to replace both the name and the email of a
47 commit matching both the specified commit name and email address.
53 Example 1: Your history contains commits by two authors, Jane
54 and Joe, whose names appear in the repository under several forms:
57 Joe Developer <joe@example.com>
58 Joe R. Developer <joe@example.com>
59 Jane Doe <jane@example.com>
60 Jane Doe <jane@laptop.(none)>
61 Jane D. <jane@desktop.(none)>
64 Now suppose that Joe wants his middle name initial used, and Jane
65 prefers her family name fully spelled out. A proper `.mailmap` file
69 Jane Doe <jane@desktop.(none)>
70 Joe R. Developer <joe@example.com>
73 Note how there is no need for an entry for `<jane@laptop.(none)>`, because the
74 real name of that author is already correct.
76 Example 2: Your repository contains commits from the following
80 nick1 <bugs@company.xx>
81 nick2 <bugs@company.xx>
82 nick2 <nick2@company.xx>
88 Then you might want a `.mailmap` file that looks like:
90 <cto@company.xx> <cto@coompany.xx>
91 Some Dude <some@dude.xx> nick1 <bugs@company.xx>
92 Other Author <other@author.xx> nick2 <bugs@company.xx>
93 Other Author <other@author.xx> <nick2@company.xx>
94 Santa Claus <santa.claus@northpole.xx> <me@company.xx>
97 Use hash '#' for comments that are either on their own line, or after
103 linkgit:git-check-mailmap[1]
108 Part of the linkgit:git[1] suite