github revert only a file code example
Example 1: How can I reset or revert a file to a specific revision?
git reset <commit hash> <filename>
Example 2: reset certain file git
git checkout c5f567 -- file1/to/restore file2/to/restore
git reset <commit hash> <filename>
git checkout c5f567 -- file1/to/restore file2/to/restore