Showing contents of a certain commit

git show <ref>:<path>