Contributor Stats With git shortlog
Count commits per author for release notes or reports.
Run git shortlog -sn --all to list authors by commit count.
01Command
Command
$ git shortlog -sn --all02What it does
shortlog groups commits by author and can emit counts or full subject lines, which is useful when writing release notes or acknowledging contributors. Combined with a tag range it summarises exactly one release.
03Risk
!Warning: Author identity depends on local git config, so one person may appear under several names or emails.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- git-shortlog documentationEvidence: Documents git shortlog, including -s summary and -n numeric sort.
Last verified: 2026-10-13 · Category: Developer