Added a git submodule by mistake, or with wrong path? The only way to go is
removing it manually. There is no built-in command to remove or fix that.
- Remove the submodule reference from
- Remove the submodule directory (
git rm module-name)
- Remove the directory
- Commit the changes
And you're done!