P. Kabra
Gi

Git Shortlog

View a breakdown of the commits per user

GitยทMay 30, 2021
Summary

To view a list of users and their commit count:

git shortlog -s -n --all --no-merges

git shortlog summarizes the output from git log, grouping each commit by user:

Options

--numbered, -n

Sort by number of commits per user:

--summary -s

Only provide the commit count of each user.

View more options on the documentation for git shortlog.

Breakdown of commits per user

Use the command

git shortlog -s -n --all --no-merges

--no-merges ensures that merge commits are not counted.

The output of the command looks like