Skip to content

Home

Delete a submodule

Deletes a submodule from the repository.

git submodule deinit -f -- <submodule>
rm -rf .git/modules/<submodule>
git rm -f <submodule>

# Examples
git submodule deinit -f -- 30code
rm -rf .git/modules/30code
git rm -f 30code
# Removes the `30code` submodule

More like this

Start typing a keyphrase to see matching snippets.