Skip to content

Instantly share code, notes, and snippets.

@kylefdoherty
Created July 10, 2016 04:24
Show Gist options
  • Save kylefdoherty/a04f63094cedd123c0009ae144c6b860 to your computer and use it in GitHub Desktop.
Save kylefdoherty/a04f63094cedd123c0009ae144c6b860 to your computer and use it in GitHub Desktop.

How to Delete a Submodule

  • Run git rm --cached
  • Delete the relevant lines from the .gitmodules file.
  • Delete the relevant section from .git/config.
  • Commit
  • Delete the now untracked submodule files.
  • Remove directory .git/modules/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment