Skip to main content

How can I view a particular revision of a file in my Git repository without checking it out?

27 Aug 2013 - git

The following command shows the contents of /path/to/file.txt from 4 revisions ago.

git show HEAD~4:/path/to/file.txt

References