Skip to content

Instantly share code, notes, and snippets.

@4brunu
Forked from kyleturner/Remove Submodule
Created March 30, 2016 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4brunu/6e55a194531a8feb6be2eb550a7fb5ea to your computer and use it in GitHub Desktop.
Save 4brunu/6e55a194531a8feb6be2eb550a7fb5ea to your computer and use it in GitHub Desktop.
How to remove a submodule from a Github project
To remove a submodule you need to:
Delete the relevant line from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Commit and delete the now untracked submodule files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment