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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,452评论 0 10
  • 在使用 SourceTree 的过程中,你可能会遇到这样诡异的事情,把一个 SubmoduleA 右击删除后,再添...
    Seimda阅读 1,051评论 0 0
  • 汽车保险已普及, 商业险种入人心。 中国市场无限大, 别拿百姓当愚民。 一一彭甫2018年 7月13日晚书
    彭甫阅读 523评论 5 10
  • 看书的间隙我无意中翻开手机相册,一张一张刷小侄女在上海游玩的照片,眼泪泛起了泪花,我有点想念我可爱的小侄女Nanc...
    MUMU菌阅读 449评论 0 2
  • “老板,我昨天晚上喝多了,今天不去上班了,”朦胧中给老板发了条信息,就又闭上眼睛接着睡过去了。昨天是她的二十六岁生...
    穆小糊涂阅读 202评论 1 0