gitlab clone 需要很多时间

gitlab clone takes a lot of time

我正在执行 SSH git 克隆 -

git clone git@gitlab.com:###############.git two3

五分钟没有任何反应,它停留在

Cloning into 'two3'.

然后它真正开始克隆。回购大约 35 MB 大小。

如何加速克隆。

这需要很长时间

有一个 recent incident, with its resolution ticket,它可以解释您遇到的一些问题。
加上 SSH loadbalancer had some issues as well.

还要检查您通过 SSH 克隆的其他 GitLab 存储库是否仍然存在该问题。

回答我自己的问题这是由于 Ipv6。当我使用 -

时它得到解决
echo "# To prefer IPv4 over everything else" >> /etc/gai.conf
echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf
echo "precedence ::1/128 50" >> /etc/gai.conf
echo "precedence ::/0 40" >> /etc/gai.conf
echo "precedence 2002::/16 30" >> /etc/gai.conf
echo "precedence ::/96 20" >> /etc/gai.conf