在使用git pull --rebase
的时候,遇到了如下错误
Unable to negotiate with 192.168.4.28 port 19428: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案:
在用户目录下的C:\Users\(计算机名)\.ssh
文件夹新建一个config
文件
输入
Host 192.168.4.28
KexAlgorithms +diffie-hellman-group1-sha1
好,问题解决了。
当然,192.168.4.28是我的ip,在具体操作的时候 你可以换成你的ip即可。