How do I remove a submodule?
In modern git (I’m writing this in 2022, with an updated git installation), this has become quite a bit simpler: Run git rm <path-to-submodule>, and commit. This removes the filetree at <path-to-submodule>, and the submodule’s entry in the .gitmodules file. I.e. all traces of the submodule in your repository proper are removed. As the docs … Read more