mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 02:12:16 +03:00
5cb62ebbff
- adjust punctuation & spacing in main description - adjust descriptions ("changes" --> "information", and explicitly list which info is returned in the first example) - use a concrete example for the tilde notation - add abbreviated example
533 B
533 B
git show
Show various types of git objects (commits, tags, etc.).
- Show information about the latest commit (message, changes, and other metadata):
git show
- Show information about a given commit:
git show {{commit}}
- Show information about the commit associated with a given tag:
git show {{tag}}
- Show information about the 3rd commit from the tip of a branch:
git show {{branch}}~{{3}}
- Show a commit's hash and message in a single line, suppressing the diff output:
git show --oneline -s {{commit}}