git reset specific file only code example Example: git reset specific file git checkout c5f567 -- file1/to/restore file2/to/restore