Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Last active December 24, 2019 13:10
Show Gist options
  • Save Himura2la/18c30d69d56ac7d48855851d5b5cf904 to your computer and use it in GitHub Desktop.
Save Himura2la/18c30d69d56ac7d48855851d5b5cf904 to your computer and use it in GitHub Desktop.
git submodule remove
git config --global alias.submodule-remove '!git submodule deinit -f "${1%/}" && git rm --cached -f "${1%/}" && rm -rf ".git/modules/$1"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment