NOTES
Remove a Git submodule
This is certainly a lot more involved than one would imagine.
The following assumes that the submodule is MODULE/TO-REMOVE
:
- Delete the relevant section from
.gitmodules
git add .gitmodules
- Delete the relevant section from
.git/config
git rm --cached MODULE/TO-REMOVE
rm -rf .git/modules/MODULE/TO-REMOVE
rm -rf MODULE/TO-REMOVE
git add .
git commit
git push