The title says it all: how do I remove a git submodule?
And by the way, is there a reason I can't simply git submodule rm whatever
?
The title says it all: how do I remove a git submodule?
And by the way, is there a reason I can't simply git submodule rm whatever
?
You must remove the entry in .gitmodules
and remove the directory of the module from the history:
git rm --cached path/to/submodule
If you'll write on git's mailing list probably someone will do a shell script for you.
(via this page)
To remove a submodule you need to: