git show

Show contents of file at a specific commit

git show <rev>:path/to/file

Stack Overflow