I have removed the existing submodule from my Git repository using commands found in the following answer: How do I remove a Git submodule?
Although the submodule has been removed (the directory is gone, and the changes have been committed) the submodules still appear in .gitmodules
just as they were before the removal. The strange thing is, Git doesn't seem to mind that they are listed there, and pretends as if they weren't. git status
tells me everything is okay, and even running git submodule init
won't re-add the submodules deleted but still listed there.
Can someone please explain why my deleted submodules still showing up in .gitmodules
? What is the significance and the role of the .gitmodules
file in Git’s internal workflow? And related, is there any harm deleting the .gitmodules
file now that I am no longer using it?