2018-03-27 08:29:00 +01:00
|
|
|
# git shortlog
|
|
|
|
|
|
|
|
> Summarizes the `git log` output.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://git-scm.com/docs/git-shortlog>.
|
2018-03-27 08:29:00 +01:00
|
|
|
|
|
|
|
- View a summary of all the commits made, grouped alphabetically by author name:
|
|
|
|
|
|
|
|
`git shortlog`
|
|
|
|
|
|
|
|
- View a summary of all the commits made, sorted by the number of commits made:
|
|
|
|
|
2024-09-03 01:43:42 +01:00
|
|
|
`git shortlog {{-n|--numbered}}`
|
2018-03-27 08:29:00 +01:00
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- View a summary of all the commits made, grouped by the committer identities (name and email):
|
2018-03-27 08:29:00 +01:00
|
|
|
|
2024-09-03 01:43:42 +01:00
|
|
|
`git shortlog {{-c|--committer}}`
|
2018-03-27 08:29:00 +01:00
|
|
|
|
|
|
|
- View a summary of the last 5 commits (i.e. specify a revision range):
|
|
|
|
|
|
|
|
`git shortlog HEAD~{{5}}..HEAD`
|
2019-07-31 04:18:59 +01:00
|
|
|
|
|
|
|
- View all users, emails and the number of commits in the current branch:
|
|
|
|
|
2024-09-03 01:43:42 +01:00
|
|
|
`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}}`
|
2019-07-31 04:18:59 +01:00
|
|
|
|
|
|
|
- View all users, emails and the number of commits in all branches:
|
|
|
|
|
2024-09-03 01:43:42 +01:00
|
|
|
`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}} --all`
|