在克隆git仓时可能出现的问题

在执行repo init 本地克隆git仓时出现如下错误:

Unable to negotiate with ×××× port ××××: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

 解决方法:

在.ssh/目录下新建config文件,添加以下内容:

Host *
    Port ****
KexAlgorithms +diffie-hellman-group1-sha1

猜你喜欢

转载自blog.csdn.net/u011821510/article/details/83585985