Git: How to remove submodule
·1 min read·paskov
Quick tip on how to remove Git submodule.
-
Remove the relevant line from the .gitmodules file
-
Delete the relevant section from .git/config (if any)
-
Run
git rm --cached path_to_submodule(without trailing slash)
-
Commit and delete the now untracked submodule files.