erlang 在Linux virtualbox虚拟机上进行bitbucket repo时git克隆挂起

oyt4ldly  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(141)

我正在尝试为一个Erlang应用程序克隆下面的git仓库,但是它挂起了。
我可以连接到网络并从github克隆,但不能从bitbucket克隆。
strace和-vv标志产生的信息很少。
[root# git clone -vv https://msacks-dev@bitbucket.org/r_s_o/epona.git正在克隆到“epona”中...

u0njafvf

u0njafvf1#

我在我的机器上测试了克隆(用git 2.35.3版),克隆没有问题(不到2秒)。但是我不怀疑你有问题。
解决这类问题的一个策略是不克隆整个仓库,而是先克隆一个片段,然后再以块的形式提取丢失的部分。

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

相关问题