1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 17:55:23 +02:00

git-show: add --name-only example (#17037)

This commit is contained in:
Itamar Shalev 2025-06-30 21:56:28 +03:00 committed by GitHub
parent 7d7bfb0295
commit b4be25f021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,13 +7,9 @@
`git show`
- Show information about a given commit:
- Show information about a specific commit, tag, or branch (such as `HEAD` for the latest commit):
`git show {{commit}}`
- Show information about the commit associated with a given tag:
`git show {{tag}}`
`git show {{commit|tag|branch}}`
- Show information about the 3rd commit from the HEAD of a branch:
@ -27,6 +23,10 @@
`git show --stat {{commit}}`
- Show a simplified list of all files changed in a commit (modified, added, and deleted):
`git show --name-only {{commit}}`
- Show only the list of added, renamed or deleted files:
`git show --summary {{commit}}`