如何将Git浅表克隆转换为完整克隆? [英] How to convert a Git shallow clone to a full clone?

查看:113
本文介绍了如何将Git浅表克隆转换为完整克隆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题的后续跟踪:如果我有浅层克隆,如何获取所有较旧的提交以使其成为完整克隆?

Follow-up of this so-question: if I have a shallow clone, how to fetch all older commits to make it a full clone?

推荐答案

编辑: git fetch --unshallow 现在是一种选择(感谢Jack O'Connor)。

git fetch --unshallow now is an option (thanks Jack O'Connor).

您可以运行 git fetch --depth = 1000000 (假设存储库的提交次数少于一百万)。

You can run git fetch --depth=1000000 (assuming the repository has less than one million commits).

这篇关于如何将Git浅表克隆转换为完整克隆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆