Git is a very powerful, fast and easy VCS (version control system). Adding a sub-module is very easy, however deleting one is not. So I googled it up and tried this solution that was on stackoverflow.
- Delete the relevant section from the
- Stage the .gitmodules changes git add
- Delete the relevant section from
git rm --cached path_to_submodule(no trailing slash).
rm -rf .git/modules/path_to_submodule
- Delete the now untracked submodule files
rm -rf path_to_submodule