#mark

可以用 git checkout 进行单个文件的回滚:

如果你想要将某个文件恢复到某个特定提交的状态,可以使用 git checkout 加上提交 ID 和文件名。例如:git checkout , 这将会将指定文件恢复到特定提交中的状态。

via Memos