如果你在处理冲突过程中决定不合并某个文件,或者想要取消之前的暂存操作(即取消git add),你可以使用git restore --staged <file>命令。这个命令会将文件从暂存区(stage area)中移除,但不会更改工作目录中的文件内容。例如: bash git restore --staged path/to/conflicted/file 注意,这只会影响暂存区,不...