1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

git-show: add example for showing file contents (#3600)

This commit is contained in:
Waldir Pimenta 2019-11-26 18:56:44 +00:00 committed by Starbeamrainbowlabs
parent 3c65624896
commit c5a8569ece

View file

@ -22,3 +22,7 @@
- Show a commit's hash and message in a single line, suppressing the diff output:
`git show --oneline -s {{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}}`