Skip to content

Instantly share code, notes, and snippets.

@melcloud
Created March 17, 2019 21:56
Show Gist options
  • Save melcloud/0ff1f4648972c597e3e940bb8cf75d7b to your computer and use it in GitHub Desktop.
Save melcloud/0ff1f4648972c597e3e940bb8cf75d7b to your computer and use it in GitHub Desktop.
Delete git submodules
Delete the relevant section from .gitmodules
git add .gitmodules
Delete the relevant section from .git/config
git rm --cached MODULE/TO-REMOVE
rm -rf .git/modules/MODULE/TO-REMOVE
rm -rf MODULE/TO-REMOVE
git add .
git commit
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment