此命令似乎不适用于 Windows。当我输入命令时
git rm -r --cached.
Run Code Online (Sandbox Code Playgroud)
这就是我得到的
usage: git rm [<options>] [--] <file>...
-n, --dry-run dry run
-q, --quiet do not list removed files
--cached only remove from the index
-f, --force override the up-to-date check
-r allow recursive removal
--ignore-unmatch exit with a zero status even if nothing matched
Run Code Online (Sandbox Code Playgroud)
帮助??
该选项-r需要文档中所述的 aa 目录:
-r
在给出前导目录名称时允许递归删除。
尝试例如
git rm -r --cached ./
Run Code Online (Sandbox Code Playgroud)