git diff commit_hash -- path/to/file
Provide any commit hashes or branch names like "master" for commit_hash.
master
commit_hash