IDEA 使用Git报错"Could not read from remote repository"

1,083 阅读1分钟

IDEA 使用Git报错”Could not read from remote repository”

问题

使用IntelliJ IDEA 操作github仓库时,突然出现下面的错误

1"Could not read from remote repository"

之前一直用着好好的,忽然就不能用了。在命令行下pull了一些,没有问题。怀疑是IDEA的配置问题。

问题原因

个人觉得应该是 IDEA 的SSH过期了。

PS: 出现这种情况的原因之一就是,你很久没有更新过这个仓库的代码了。估计是仓库心凉了 :)

解决办法

在 Setting窗口找到git,将ssh executable项设置为native。入下图
Git设置

转载请注明出处
本文链接:zdran.com/20180508.ht…