git checkout HEAD -- /directory/my-file.txt
git reset <commit hash> <filename>
git checkout c5f567 -- file1/to/restore file2/to/restore
git checkout -- .
git checkout HEAD -- my-file.txt