在 Windows 上运行 git rm -r --cached

Mad*_*noy 0 windows git

此命令似乎不适用于 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)

帮助??

DAX*_*lic 5

该选项-r需要文档中所述的 aa 目录:

-r
在给出前导目录名称时允许递归删除。

尝试例如

git rm -r --cached ./
Run Code Online (Sandbox Code Playgroud)