Skip to content

Instantly share code, notes, and snippets.

@baotang2118
Created June 23, 2021 01:39
Show Gist options
  • Save baotang2118/f201048a56754aa4cb561c3e7269b3fc to your computer and use it in GitHub Desktop.
Save baotang2118/f201048a56754aa4cb561c3e7269b3fc to your computer and use it in GitHub Desktop.
I create a git-del-submodule.sh to remove all git submodule out of our project
for i in $@; do
git submodule deinit -f -- "$i"
rm -rf ".git/modules/$i"
git rm -f "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment