Skip to content

Instantly share code, notes, and snippets.

@annawinkler
Last active January 11, 2019 19:00
Show Gist options
  • Save annawinkler/659ad518a4349907b2cfd416de3b3fd8 to your computer and use it in GitHub Desktop.
Save annawinkler/659ad518a4349907b2cfd416de3b3fd8 to your computer and use it in GitHub Desktop.
remove a git 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