增加浅克隆的深度而不获取其他分支

2024-01-14

为了节省磁盘空间,我通常进行浅克隆:

  • 最新的远程git标签 https://stackoverflow.com/q/29780641/5353461
  • 默认分支:

    git clone --depth 20 --shallow-submodules --recurse-submodules

如何增加浅克隆的深度?

注:我不想增加到完整克隆 https://stackoverflow.com/q/6802145/5353461,我只想加深我已经拥有的东西。


Use git fetch --deepen=<depth>:

man git-fetch https://manned.org/git-fetch says:

  --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.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

增加浅克隆的深度而不获取其他分支 的相关文章

随机推荐