git revert commit for single file

C++
git checkout c5f567 -- file1/to/restore file2/to/restoregit checkout <commit_hash> path/to/file
Source

Also in C++: