Skip to content

Instantly share code, notes, and snippets.

@pingec
Created May 16, 2019 19:24
Show Gist options
  • Save pingec/481b0b838292ad8b5cb7fb6361983e03 to your computer and use it in GitHub Desktop.
Save pingec/481b0b838292ad8b5cb7fb6361983e03 to your computer and use it in GitHub Desktop.
Remove submodule
To remove a submodule you need to:
Run git rm --cached <submodule name>
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/<submodule name>
Source: https://gist.github.com/kyleturner/1563153#gistcomment-1568993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment