mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
git-show: add page (#1331)
This commit is contained in:
parent
11e745572e
commit
b71c9cdcf3
1 changed files with 19 additions and 0 deletions
19
pages/common/git-show.md
Normal file
19
pages/common/git-show.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# git show
|
||||||
|
|
||||||
|
> Show various types of git objects(commits, tags etc.).
|
||||||
|
|
||||||
|
- Show changes made in the latest commit:
|
||||||
|
|
||||||
|
`git show`
|
||||||
|
|
||||||
|
- Show changes made in a given commit:
|
||||||
|
|
||||||
|
`git show {{commit}}`
|
||||||
|
|
||||||
|
- Show changes made in the commit with a given tag:
|
||||||
|
|
||||||
|
`git show {{tag}}`
|
||||||
|
|
||||||
|
- Show the changes made n commits ago on a branch:
|
||||||
|
|
||||||
|
`git show {{branch}}~{{n}}`
|
Loading…
Add table
Reference in a new issue