Git 使用常用报错汇总

2021-11-24T11:28:00

环境介绍

托管系统为:Gitolite - 轻量级的 Git 代码托管系统

客户端Git版本:2.34.0

服务端Git版本:1.9.0

Git操作报错

无论是提交还是拉取都会报错,报错如下:

Unable to negotiate with 服务器IP port 22: no matching host key type found
Their offer: ssh-rsa, ssh-dss
fatal: Cou1d not read from remote repository.
Please make sure you have the correct access ri ghts
and the repository exists .

解决方案:

将客户端Git版本调低到2.20.1

原因:

客户端和服务端Git版本,不匹配;由于没有找到Git的升级日志,可能看到的只是表象;如果有对此了解的同学,欢迎评论区不吝赐教~~~

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »