Information Technology Reference
In-Depth Information
The more complicated example:
Proper Name < proper@example.net > < commit@example.net >
changes both the name and email of the commits with the author's email equal to
commit@example.net to Proper Name and proper@example.net .
The location of the .mailmap file can be changed from the root of working direct-
ory to an arbitrary location defined by a mailmap.file configuration option. Both
.gitconfig and .mailmap files can be utf-8 encoded, thus you can use non-ascii
characters, such as ł, ó inside. If you want to analyze the real life .mailmap example
visit jQuery repository: https://github.com/jquery/jquery .
Documentation The complete specification of the .mailmap file is available in
the manual of the shortlog command : $ git shortlog --help .
Remember that when you define a strange name, such as:
Paul "Moo" Cowboy
you have to use quotes and backslashes:
[user]
name = "Paul \"Moo\" Cowboy"
email = john.doe@example.net
Hint The command: $ git log --pretty=format:"- { name:
'%an', email: '%ae' }" | sort | uniq prints the complete list of all the
authors in YAML format. You can use this list to automatically generate your
.mailmap file for large projects.
3-5. Restoring revisions with git reset
Search WWH ::




Custom Search