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

---

 

posted @ 2017-07-05 13:54  Key_Ky  阅读(203)  评论(0编辑  收藏  举报