diff --git a/pages/common/git-show.md b/pages/common/git-show.md index 7cd09a2b1..9f5cd34ef 100644 --- a/pages/common/git-show.md +++ b/pages/common/git-show.md @@ -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}}`