git shortlog
Summarize commits grouped by author, commonly used for changelogs and contributor statistics
Syntax
git shortlog [<options>] [<revision-range>] [[--] <path>...]
Parameters
| Parameters | Description | Examples | Level |
|---|---|---|---|
-s |
|
Common | |
-n |
() | |
Common |
-e |
|
Common | |
--group=trailer:<key> |
trailer | |
Common |
--since=<date> |
|
Common |
Examples
git shortlog -sn
142 87 23
and
git shortlog -sne
git shortlog -sn --since="2024-01-01"
git shortlog v1.0.0..v2.0.0
git shortlog --no-merges -sn
Tips
- CHANGELOG
- git shortlog -sn
- --no-merges,