git重置特定文件
git checkout c5f567 -- file1/to/restore file2/to/restore
git重置一个文件
git checkout HEAD -- my-file.txt
如何将文件重置或还原为特定修订版本?
git reset <commit hash> <filename>
git revert一个文件
git checkout HEAD -- /directory/my-file.txt
恢复未分页的更改git
git checkout -- .
git revert提交单个文件
git checkout <commit_hash> path/to/file