Skip to content

Instantly share code, notes, and snippets.

@anointed
Created April 11, 2012 17:46
Show Gist options
  • Select an option

  • Save anointed/2360864 to your computer and use it in GitHub Desktop.

Select an option

Save anointed/2360864 to your computer and use it in GitHub Desktop.
remove a git submodule
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.
http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule/1260982#1260982
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment