5

git bookで説明されているようにサブモジュールを変更してみてください

$ 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
4

1 に答える 1

5

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
于 2012-05-11T08:48:08.517 に答える