Created
May 16, 2019 19:24
-
-
Save pingec/481b0b838292ad8b5cb7fb6361983e03 to your computer and use it in GitHub Desktop.
Remove submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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