git submodule deinit -f -- <submodule>
to unregister the specified <submodule>
.rm -rf .git/modules/<submodule>
to remove the directory of the submodule.git rm -f <submodule>
to remove the working tree of the submodule.git submodule deinit -f -- <submodule> rm -rf .git/modules/<submodule> git rm -f <submodule>
git submodule deinit -f -- 30code rm -rf .git/modules/30code git rm -f 30code # Removes the `30code` submodule
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️