Skip to content

Instantly share code, notes, and snippets.

@tonini
Created July 9, 2013 18:46
Show Gist options
  • Save tonini/5960034 to your computer and use it in GitHub Desktop.
Save tonini/5960034 to your computer and use it in GitHub Desktop.
# git-submodule-deinit
deinit
Unregister the given submodules, i.e. remove the whole submodule.$name section
from .git/config together with their work tree. Further calls to git submodule
update, git submodule foreach and git submodule sync will skip any unregistered
submodules until they are initialized again, so use this command if you don't
want to have a local checkout of the submodule in your work tree anymore. If
you really want to remove a submodule from the repository and commit that use
git-rm(1) instead.
If --force is specified, the submodule's work tree will be removed even if it
contains local modifications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment