-
mv a/submodule a/submodule_tmp
-
git submodule deinit -f -- a/submodule
-
rm -rf .git/modules/a/submodule
-
git rm -f a/submodule
https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule
mv a/submodule a/submodule_tmp
git submodule deinit -f -- a/submodule
rm -rf .git/modules/a/submodule
git rm -f a/submodule
https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule