mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 11:50:20 +00:00
Update cheatsheets
This commit is contained in:
33
git-shortlog
Normal file
33
git-shortlog
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git shortlog
|
||||
|
||||
> Summarizes the `git log` output.
|
||||
> More information: <https://git-scm.com/docs/git-shortlog>.
|
||||
|
||||
- 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 committer 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`
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user