git rm 的文档好像前后矛盾,是哪里理解错了吗?
資深大佬 : AndyAO 1
git-rm – Remove files from the working tree and from the index
Remove files matching pathspec from the index, or from the working tree and the index. git rm will not remove a file from just your working directory. (There is no option to remove a file only from the working tree and yet keep it in the index; use /bin/rm if you want to do that.)
这里摘录了 git rm 文档中的两段话。
第 1 段话说明 git rm 可以删除工作树中的文件,但第 2 段的意思好像是说,git rm不能从工作树中删除文件,如果需要的话必须使用/bin/rm才行。
感觉这两段话是前后矛盾的。
大佬有話說 (4)