我是靠谱客的博主 正直小刺猬,这篇文章主要介绍git clone 不能拉取代码的解决方案,现在分享给大家,希望可以做个参考。

git clone 出现如下错误:

Unable to negotiate with 10.10.0.49 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.

出现这种情况的解决方案

C:Usersname.name.ssh   

在这个文件夹里,vim config

需要填写的内容如下:

Host 10.10.0.49
    KexAlgorithms +diffie-hellman-group1-sha1
 

 

最后

以上就是正直小刺猬最近收集整理的关于git clone 不能拉取代码的解决方案的全部内容,更多相关git内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部