git rm -r在子模块中不起作用

ste*_*ter 5 git git-submodules git-rm

尝试按照git book中的描述更改子模块

$ git rm -r vendor/html-minifier
$ git submodule add https://github.com/kangax/html-minifier.git vendor/html-minifier
Run Code Online (Sandbox Code Playgroud)

但它失败了以下

rm 'vendor/html-minifier'
fatal: git rm: 'vendor/html-minifier': Is a directory
Run Code Online (Sandbox Code Playgroud)