In brief
git show can display contents from a repository object. For example, git show HEAD:README.md reads that file from the current commit without editing the working copy.
Useful to know
git show can display contents from a repository object. For example, git show HEAD:README.md reads that file from the current commit without editing the working copy. [1]
This helps inspect historical settings. The path after the colon is relative to the repository tree. Do not confuse the displayed version with uncommitted local edits, which need the working-tree views.
Sources
For further detail and to check the information: