Skip to content

Instantly share code, notes, and snippets.

@desaiuditd
Forked from kyleturner/Remove Submodule
Last active August 29, 2015 14:17
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 desaiuditd/f5df756441d70e0c8791 to your computer and use it in GitHub Desktop.
Save desaiuditd/f5df756441d70e0c8791 to your computer and use it in GitHub Desktop.
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