3 # http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule
5 if [ x
"$1" = x
"" ]; then
6 echo "Usage: $0 <git submodule name>"
9 echo "Removing submodule [$1] ..."
12 git submodule deinit
$1
15 # Note: [asubmodule] (no trailing slash)
16 # or, if you want to leave it in your working tree
19 echo Cleanup
[.git
/modules
/$1]
20 rm -rf .git
/modules
/$1