# Does even this fail?
git clone --depth 1 -vv https://msacks-dev@bitbucket.org/r_s_o/epona.git
# Repo has now one commit, try to fetch one additional commit. Does this fail?
git fetch --deepen=1
# Since this particular repo only has 7 commits in total as of writing this, you might
# as well just repeat the last command 5 times. In the general case at this point you
# would typically try to fetch the next 10 commits, and if successful the next
# 100 commits, 1000 commits, etc.
1条答案
按热度按时间u0njafvf1#
我在我的机器上测试了克隆(用git 2.35.3版),克隆没有问题(不到2秒)。但是我不怀疑你有问题。
解决这类问题的一个策略是不克隆整个仓库,而是先克隆一个片段,然后再以块的形式提取丢失的部分。