How to completely remove a submodule:
- Run
git rm -rf path/to/submodule
(use --cached if it's already gone) - Remove entry in
.gitmodules
- Remove entry in
.git/config
- Run
rm -rf .git/modules/<submodule name>
How to completely remove a submodule:
git rm -rf path/to/submodule
(use --cached if it's already gone).gitmodules
.git/config
rm -rf .git/modules/<submodule name>