Created
June 23, 2021 01:39
-
-
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
This file contains hidden or 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
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