Skip to content

Instantly share code, notes, and snippets.

@atomkirk
Last active August 1, 2016 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save atomkirk/5649519 to your computer and use it in GitHub Desktop.
Save atomkirk/5649519 to your computer and use it in GitHub Desktop.
Remove a Git Submodule

How to completely remove a submodule:

  1. Run git rm -rf path/to/submodule (use --cached if it's already gone)
  2. Remove entry in .gitmodules
  3. Remove entry in .git/config
  4. Run rm -rf .git/modules/<submodule name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment