To reset or revert a specific file to a specific revision follow the command
First, you need to have the hash of the commit then run this command
$ git checkout <hash-of-the-commit> -- file1/to/restore file2/to/restore
(file1/to/restore file2/to/restore is the path to the file that to be revert or reset to the specific version.
There will be a little confusion with the command because we use this to change the branches and also we use it for detaching.