Skip to content

Instantly share code, notes, and snippets.

@dmhendricks
Created January 13, 2020 19:48
Show Gist options
  • Save dmhendricks/0f966d2778e662f4c89dc156be6bb1ea to your computer and use it in GitHub Desktop.
Save dmhendricks/0f966d2778e662f4c89dc156be6bb1ea to your computer and use it in GitHub Desktop.
How to Remove a git submodule

The most effective way to remove a git submodule (source):

git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit -m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment