To remove an unwanted submodule, you need to cancel it:
git submodule deinit CocktailMakerModule
then add the directory or file again:
git add CocktailMakerModule
Check out the current outstanding submodules: git submodule status .
For more information, check out the Git manual by running: man git-submodule .
Otherwise, if you want to save this submodule, follow these steps: Git: fatal: Pathspec is in the submodule .
kenorb
source share