This question already has an answer here:
Using git, is there a command which I can reset a file to a specific commit in the commit log?
I know git checkout file can let me reset the file to HEAD, but how to reset to a specific commit version?
the post does not solve my problem I think. I need to know how to reset a specific file to its specific version?
Try this one so : stackoverflow.com/questions/215718/…
Also, to avoid ambiguity between file names and ref names, you may need to git checkout commit -- file...