git/submodule\343\202\222\346\231\256\351\200\232\343\201\256\343\203\207\343\202\243\343\203\254\343\202\257\343\203\210\343\203\252\343\201\253\346\210\273\343\201\231.md
... ...
@@ -0,0 +1,10 @@
1
+[How to un-submodule a Git submodule? - Stack Overflow](https://stackoverflow.com/questions/1759587/how-to-un-submodule-a-git-submodule)
2
+
3
+```
4
+git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash)
5
+git rm .gitmodules # if you have more than one submodules,
6
+ # you need to edit this file instead of deleting!
7
+rm -rf submodule_path/.git # make sure you have backup!!
8
+git add submodule_path # will add files instead of commit reference
9
+git commit -m "remove submodule"
10
+```