ハトネコエ Web がくしゅうちょう

プログラミングやサーバー・Web制作、チームマネジメントなど得た技術のまとめ

gitでディレクトリ(フォルダ)削除時のエラー error: the following submodule

Issue with removing a git submodule - Stack Overflow

 --git submodule deinit -f vim/bundle/snipmate-snippets
Submodule work tree 'vim/bundle/snipmate-snippets' contains a .git directory
(use 'rm -rf' if you really want to remove it including all of its history)

So I try rm -rf...

 --git rm -rf vim/bundle/snipmate-snippets|
error: the following submodule (or one of its nested submodules)
uses a .git directory:
    vim/bundle/snipmate-snippets
(use 'rm -rf' if you really want to remove it including all of its history)

What is it that I'm doing wrong? Obviously just doing rm -rf like git is telling me to won't be good enough since the submodule entries in the .gitmodules file will stay. Thanks.

git rm -r ./local/ で
ディレクトリを消そうと思ったら、そのディレクトリはgit管理されてるフォルダだからって警告出てきた。

警告通り、git rm -rf ./local/ してもエラーメッセージ。

どういうことじゃい、と思ったら、正解は
rm -rf ./local/
ってするのが正解。gitいらないのね、なんだ。