Why does git rm -rf not get rid of a folder with a submodule in it?
git
Solution
This error message confused me too, but what it is trying to say is that you should use `rm -rf`, not `git rm -rf`:
(use 'rm -rf' if you really want to remove it including all of its history)
So, you should be able to do this:
$ rm -rf octopress
$ git rm octopress
Problem
When I do `git status` this is what I see: ``` $ git status # On branch master # Your branch is ahead of 'github/master' by 1 commit. # (use "git push" to publish your local commits) # # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: octopress (modified content, untracked content) # no changes added to commit (use "git add" and/or "git commit -a") ``` When I do `git rm -rf octopress`, this is what I see: ``` $ git rm -rf octopress error: submodule 'octopress' (or one of its nested submodules) uses a .git directory (use 'rm -rf' if you really want to remove it including all of its history) ``` Thoughts?