← 返回命令列表

Linux command

git-shortlog 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Summarize commits by author

git shortlog

Show commit counts

git shortlog -sn

Show email addresses

git shortlog -sne

Shortlog for range

git shortlog [v1.0..v2.0]

Group by committer

git shortlog -c

说明

git shortlog summarizes `git log` output by grouping commits under each author. It is commonly used for generating release notes and contributor acknowledgments. The command can show commit counts per author, sort by contribution size, and use the mailmap for identity normalization across different name/email variations.

参数

-s, --summary
Show counts only.
-n, --numbered
Sort by count.
-e, --email
Show email addresses.
-c, --committer
Group by committer.
--group _FIELD_
Group by field.
--help
Display help information.

FAQ

What is the git-shortlog command used for?

git shortlog summarizes `git log` output by grouping commits under each author. It is commonly used for generating release notes and contributor acknowledgments. The command can show commit counts per author, sort by contribution size, and use the mailmap for identity normalization across different name/email variations.

How do I run a basic git-shortlog example?

Run `git shortlog` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s, --summary do in git-shortlog?

Show counts only.