當我做git status
這是我所看到的:爲什麼git rm -rf沒有擺脫其中具有子模塊的文件夾?
$ 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")
當我做git rm -rf octopress
,這是我所看到的:
$ 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)
的思考?