Skip to content

Instantly share code, notes, and snippets.

@npanuhin
Created August 19, 2021 22:10
Show Gist options
  • Save npanuhin/dd0d059188af6b8d5f25927dbc0fc732 to your computer and use it in GitHub Desktop.
Save npanuhin/dd0d059188af6b8d5f25927dbc0fc732 to your computer and use it in GitHub Desktop.
Remove Git Submodule
set submodule_path=%1
git submodule deinit -f "%submodule_path%"
rmdir /S /Q ".git/modules/%submodule_path%"
git rm -f "%submodule_path%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment