git reset a single file code example
Example 1: git revert one file
git checkout HEAD -- /directory/my-file.txt
Example 2: git reset one file
git checkout HEAD -- my-file.txt
Example 3: reset certain file git
git checkout c5f567 -- file1/to/restore file2/to/restore