git命令笔记

删除submodule

mv asubmodule asubmodule_tmp
git submodule deinit -f -- a/submodule    
rm -rf .git/modules/a/submodule

git rm -f a/submodule
# Note: a/submodule (no trailing slash)

# or, if you want to leave it in your working tree
git rm --cached asubmodule
mv asubmodule_tmp asubmodule

---

原文地址:https://www.cnblogs.com/Key-Ky/p/7120932.html