Skip to content

Instantly share code, notes, and snippets.

View JosiahWitt's full-sized avatar

Josiah Witt JosiahWitt

View GitHub Profile
@kyleturner
kyleturner / Remove Submodule
Created January 5, 2012 01:07
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.