You can run git checkout HEAD -- path/to/your/file to reset the file to the state of HEAD. You can also replace HEAD with other identifiers if you want your file to come from other sources e.g. git checkout my-branch -- path/to/file or git checkout HEAD~1 -- path/to/file if you want it to come from 1 commit before HEAD.