2019-01-17 submodule
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule

image.png

image.png
相關文章
- Git使用之submoduleGit
- git submodule小記Git
- 聊聊Git subModule(子模組)Git
- GoCN每日新聞(2019-01-17)Go
- Git submodule使用指南(一)Git
- Git submodule使用指南(二)Git
- git submodule 子模組應用Git
- 將git倉庫從submodule轉換為subtreeGit
- 024、執行容器的最佳實踐(2019-01-17 週四)
- Git 分支策略與submodule對分支策略的影響Git
- Git應用詳解第十講:Git子庫:submodule與subtreeGit
- 使用Jenkins + git submodule 實現自動化編譯,解決程式碼安全性問題JenkinsGit編譯