Get an old version of a file in git

Here is how you can get an old version of a file in Git.

git reset 6315b560686b622013ecb0ac7f08e9a389e185c2 path/to/file/relative/to/git/root

This will replace the current version with older version.