.MAILMAP 文件扩展名

Git Mailmap File

开发者 Git
受欢迎程度
2.0  |  1 
 

什么是 MAILMAP 文件?

A MAILMAP file is a plain-text configuration file used in Git repositories to map multiple author names or email addresses to a single canonical identity, helping unify contributions from the same person who may have used different names or email addresses in commits. MAILMAP files are typically saved in the root directory of a Git repository and follow a simple format where each line specifies the canonical name and email, followed by the variant names or emails to be mapped.

更多信息

在 Apple TextEdit 1.2 中打开的 .mailmap 文件截图
在 Apple TextEdit 1.2 中打开的 MAILMAP 文件

Git uses MAILMAP files primarily when generating contributor statistics, logs, or reports. For example, when running commands like git shortlog or git log --format="%aN <%aE>", Git can apply the mappings in the MAILMAP file to display a unified author list.

This functionality makes it easier for project maintainers to recognize all contributions from a single individual, even if that person committed under multiple identities. Developers, open-source project maintainers, and teams managing collaborative repositories are the most common users of MAILMAP files.

如何打开 MAILMAP 文件

You can open a MAILMAP file with any text editor, as it is stored in plain text. To use a MAILMAP file, place it in the root directory of a Git repository, and Git commands that support mailmap mapping will automatically read it. No specialized software is required beyond Git itself.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 MAILMAP 文件的程序

All Platforms
免费
分类: 开发者
更新时间: 2025-12-02

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Git Mailmap 文件格式和 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们