<分区>
删除一个文件可以:
git rm path/to/file
当我想在 git 中取消暂存已删除的文件时,我必须:
git reset --path/to/file
git checkout -- path/to/file
我不太明白为什么 --
是必需的以及命令与以下命令有何不同:
git reset path/to/file
git checkout path/to/file
其他的是后者不起作用。
--
背后的基本原理是什么?
fatal error 状态:
Use '--' to separate paths from revisions
但我还是不太明白其中的区别。