Add vcpkg config files
This commit is contained in:
14
remove_submodules.sh
Normal file
14
remove_submodules.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do
|
||||
echo "Removing $line"
|
||||
# Deinit the submodule
|
||||
git submodule deinit -f "$line"
|
||||
|
||||
# Remove the submodule from the working tree
|
||||
git rm -f "$line"
|
||||
|
||||
# Remove the submodule from .git/modules
|
||||
rm -rf ".git/modules/$line"
|
||||
done
|
||||
|
||||
# Remove the .gitmodules file
|
||||
git rm -f .gitmodules
|
Reference in New Issue
Block a user