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