Created
October 11, 2017 13:19
-
-
Save basiclines/8866ec871153e9315402edfa3712ac65 to your computer and use it in GitHub Desktop.
Safely remove git submodules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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