I want to remove a git submodule. I found another question that answers how to do it but I had questions about the process.
In my knowledge, removing the reference from .gitmodules should remove it from .git/config as well as I see that .git/config (in the the top level) gets updated on running "git submodule init". So, why can't I just remove from .gitmodules and git rm --cached ?
Another question is that when I did that(just remove from .gitmodules), on running git submodules init, I see a failure as git tries to initialize the submodule that I want to remove.
I understand this is a process and this is how it is but if someone can give some more info. on it, it would be great. I have googled on it and also seen similar questions on stackoverflow.