Skip to content

Instantly share code, notes, and snippets.

@basiclines
Created October 11, 2017 13:19
Show Gist options
  • Save basiclines/8866ec871153e9315402edfa3712ac65 to your computer and use it in GitHub Desktop.
Save basiclines/8866ec871153e9315402edfa3712ac65 to your computer and use it in GitHub Desktop.
Safely remove git submodules
#!/bin/bash
mv location/module_name location/module_name_2
git submodule deinit -f -- location/module_name
git rm -f location/module_name
rm -rf location/module_name_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment