Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-18 00:18:12 +00:00
parent bf8338a66c
commit 9cb77296ba
9 changed files with 179 additions and 21 deletions

View File

@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`git show {{commit|tag|branch}}`
- Show only the list of added, renamed or deleted files:
`git show --summary {{commit}}`
- Show information about the 3rd commit from the HEAD of a branch:
`git show {{branch}}~{{3}}`
@@ -32,10 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`git show --name-only {{commit}}`
- Show only the list of added, renamed or deleted files:
`git show --summary {{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}}`