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