Contributor Stats With git shortlog

Count commits per author for release notes or reports.

macOSstatsgitcliLow risk
Run git shortlog -sn --all to list authors by commit count.

01Command

Command
$ git shortlog -sn --all

02What 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

RiskLow risk
RequirementsGit 2.20+ (install with Homebrew or Xcode Command Line Tools)
CompatibilitymacOS with Git installed (Homebrew or Xcode Command Line Tools)
!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 documentation
    Git · vendor-doc · 2026-09-20
    Evidence: Documents git shortlog, including -s summary and -n numeric sort.

Last verified: 2026-10-13 · Category: Developer