mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
git-show: add example for --stat option (#3728)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
parent
330cb20b6c
commit
29b3ab40a1
@ -3,7 +3,7 @@
|
||||
> Show various types of git objects (commits, tags, etc.).
|
||||
> More information: <https://git-scm.com/docs/git-show>.
|
||||
|
||||
- Show information about the latest commit (message, changes, and other metadata):
|
||||
- Show information about the latest commit (hash, message, changes, and other metadata):
|
||||
|
||||
`git show`
|
||||
|
||||
@ -19,10 +19,14 @@
|
||||
|
||||
`git show {{branch}}~{{3}}`
|
||||
|
||||
- Show a commit's hash and message in a single line, suppressing the diff output:
|
||||
- Show a commit's message in a single line, suppressing the diff output:
|
||||
|
||||
`git show --oneline -s {{commit}}`
|
||||
|
||||
- Show only the list of the files changed in a commit:
|
||||
|
||||
`git show --stat {{commit}}`
|
||||
|
||||
- Show the contents of a file as it was at a given revision (e.g. branch, tag or commit):
|
||||
|
||||
`git show {{revision}}:{{path/to/file}}`
|
||||
|
Loading…
Reference in New Issue
Block a user