Command
git show
Displays a Git object; a typical single-parent commit displays metadata and patch. The revision:path form displays recorded file content.
Formal Syntax & Structure
git syntaxgit
git show [options] [object]Working Example
Example Snippetgit
git show HEAD~1:notes.txt