git revert one file

C++
git checkout HEAD -- /directory/my-file.txtgit reset <commit hash> <filename>git checkout HEAD -- my-file.txtgit checkout -- .
git checkout c5f567 -- file1/to/restore file2/to/restoregit checkout <commit_hash> path/to/file
Source

Also in C++: