Within your project directory follow these steps to remove the submodule:

  1. Delete the relevant section from the .gitmodules file
  2. Delete the relevant section from .git/config
  3. Run with no trailing slash git rm --cached path_to_submodule
  4. Commit
  5. Delete the now untracked submodule files rm -rf path_to_submodule
comments powered by Disqus