U2647's blog 一个热爱学习的 Java 程序员,喜欢 Vue,喜欢深度学习 Dubbo Flutter SpringBoot Debug Notes Java LeetCode Python Redis Android DesignPattern mdi-home-outline 首页 mdi-cloud-outline 标签云 mdi-timeline-text-outline 时间轴 mdi-draw-pen 文章总数 62
IDEA 使用Git报错"Could not read from remote repository" IDEA 使用Git报错"Could not read from remote repository" Git IDEA Could not read from remote repository pull push mdi-cursor-default-click-outline 点击量 62

问题

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

"Could not read from remote repository"

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

问题原因

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

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

解决办法

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

版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!
我的GitHub 我的LeetCode 我的掘金
Powered by Hexo Powered by three-cards
Copyright © 2017 - {{ new Date().getFullYear() }} 某ICP备xxxxxxxx号