Progress:
TIER 1 · MODULE 27· Basics

git shortlog

Release notes' best friend.

🎯 What & why

Group commits by author. Default output: each author with their commit count and subjects. The fastest way to compose a release note's 'who contributed' section.

🧠 Mental model

Shortlog is log filtered through a per-author aggregator. Most useful flags add summary counts and tame the output for paste-into-changelog.

🛠️ Synopsis

git shortlog [<options>] [<revision range>] [[--] <path>...]

🎚️ Switches & options

FlagWhat it does
-sSuppress descriptions; just author + commit count.
-nSort by commit count descending.
-eShow emails too.
--no-mergesSkip merge commits.
--group=<type>Group by author, committer, or trailer:<name> (e.g. Reviewed-by).

💡 Use cases

🧪 Examples

Per-author commits since last tag.
$ git shortlog -sne v1.1..HEAD
Reviewers tally for a release.
$ git shortlog --group=trailer:Reviewed-by v1.1..v1.2

🎓 Recommendations

🪤 Common pitfalls

🔗 Related modules

📝 Quiz

Hit each option, then Check answers. Score is recorded; Next is always open.