如何将 Git 浅克隆转换为完整克隆? [英] How to convert a Git shallow clone to a full clone?
本文介绍了如何将 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屋!
查看全文