【发布时间】:2019-10-25 15:00:33
【问题描述】:
为了节省磁盘空间,我一般是浅克隆:
- The latest remote git tag
-
默认分支:
git clone --depth 20 --shallow-submodules --recurse-submodules
如何增加浅克隆的深度?
注意:我不想increase to a full clone,我只想加深我已经拥有的。
【问题讨论】:
为了节省磁盘空间,我一般是浅克隆:
默认分支:
git clone --depth 20 --shallow-submodules --recurse-submodules
如何增加浅克隆的深度?
注意:我不想increase to a full clone,我只想加深我已经拥有的。
【问题讨论】:
使用git fetch --deepen=<depth>:
--deepen=<depth> Similar to --depth, except it specifies the number of commits from the current shallow boundary instead of from the tip of each remote branch history.
【讨论】: