books icon indicating copy to clipboard operation
books copied to clipboard

可以把submodule合并到master里面吗

Open SakuraMeii opened this issue 3 years ago • 3 comments

直接checkout submodule会特别慢,几乎没反应,而且同时checkout master和分支会导致占用空间扩大好几倍,希望能把submodule直接合并到master里面

SakuraMeii avatar Jul 25 '22 08:07 SakuraMeii

submodule 不合并到 master 中是因为同步用的单个虚拟机有 14 GB 的磁盘空间限制,而整个 repo 加起来已经超了

PincongBot avatar Feb 04 '23 05:02 PincongBot

可以试试使用以下命令进行克隆

git clone --depth=1 --recurse-submodules --shallow-submodules https://github.com/program-think-mirrors/books.git

来源

PincongBot avatar Feb 04 '23 05:02 PincongBot

不过,鉴于编程随想本人大概率不会再更新,我合并了所有 submodule 到一个新的分支: https://github.com/program-think-mirrors/books/tree/full

可以直接使用以下命令进行克隆

git clone --depth=1 --branch=full https://github.com/program-think-mirrors/books.git

PincongBot avatar Feb 04 '23 06:02 PincongBot