Skip to content

Instantly share code, notes, and snippets.

@johanlindfors
Last active December 29, 2019 09:29
Show Gist options
  • Save johanlindfors/22c6bb6054b83fa95470bbaf8992769a to your computer and use it in GitHub Desktop.
Save johanlindfors/22c6bb6054b83fa95470bbaf8992769a to your computer and use it in GitHub Desktop.
How to remove a submodule

This should be sufficient to delete a submodule

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