$ git rm -r vendor/html-minifier
$ git submodule add https://github.com/kangax/html-minifier.git vendor/html-minifier
但它失败了
rm 'vendor/html-minifier'
fatal: git rm: 'vendor/html-minifier': Is a directory
$ git rm -r vendor/html-minifier
$ git submodule add https://github.com/kangax/html-minifier.git vendor/html-minifier
但它失败了
rm 'vendor/html-minifier'
fatal: git rm: 'vendor/html-minifier': Is a directory
来自http://txt.binnyva.com/2008/07/remove-a-folder-from-git/
git rm -r vendor/html-minifier/.
或者也许(来自https://serverfault.com/questions/256421/cant-git-rm-a-directory)
git rm --cached -r dirname