LinuxCommandLibrary

git-shortlog

Summarize git log output grouped by author

TLDR

Summarize commits by author

$ git shortlog
copy
Show commit counts
$ git shortlog -sn
copy
Show email addresses
$ git shortlog -sne
copy
Shortlog for range
$ git shortlog [v1.0..v2.0]
copy
Group by committer
$ git shortlog -c
copy

SYNOPSIS

git shortlog [options] [revision-range]

DESCRIPTION

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.

PARAMETERS

REVISION-RANGE

Commits to summarize.
-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.

CONFIGURATION

.mailmap

Maps author identities to canonical names and emails, used by git shortlog for deduplication.

CAVEATS

Reads from stdin or revision range. Uses mailmap for identity consolidation. Different from git log --oneline.

HISTORY

git shortlog is a core Git command for generating contributor summaries, commonly used for release notes and acknowledgments.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community