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:
|
|
|
|
|
|
|
|
`git shortlog -n`
|
|
|
|
|
|
|
|
- View a summary of all the commits made, grouped by the commiter identities (name and email):
|
|
|
|
|
|
|
|
`git shortlog -c`
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
|
|
`git shortlog -sne`
|
|
|
|
|
|
|
|
- View all users, emails and the number of commits in all branches:
|
|
|
|
|
|
|
|
`git shortlog -sne --all`
|