How to view a file at a specific git commit? Aug 18, 2022 This is the way: $ git show REV:/path/to/file For example, if the git commit starts with “ab12” and the file is bob.py in the current directory, type this: $ git show ab12:./bob.py