-
-
Save evidex/eee98f6c7782a2b45436 to your computer and use it in GitHub Desktop.
How to remove a submodule from a Github project
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: | |
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