【问题标题】:Increase depth of shallow clone without fetching other branches在不获取其他分支的情况下增加浅克隆的深度
【发布时间】:2019-10-25 15:00:33
【问题描述】:

为了节省磁盘空间,我一般是浅克隆:

如何增加浅克隆的深度?

注意:我不想increase to a full clone,我只想加深我已经拥有的。

【问题讨论】:

    标签: git git-clone git-fetch


    【解决方案1】:

    使用git fetch --deepen=<depth>:

    man git-fetch 说:

      --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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-04
      • 2019-10-04
      • 1970-01-01
      • 2020-02-20
      • 2017-09-17
      • 1970-01-01
      • 2013-10-11
      • 2020-08-08
      相关资源
      最近更新 更多