前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Push failed: Failed with error: fatal: Could not read from remote repository.

Push failed: Failed with error: fatal: Could not read from remote repository.

作者头像
他叫自己MR.张
发布2019-07-01 11:05:15
1.2K0
发布2019-07-01 11:05:15
举报
文章被收录于专栏:Android必知必会Android必知必会

版权声明:本文为他叫自己Mr.张的原创文章,转载请注明出处,否则禁止转载。 https://cloud.tencent.com/developer/article/1452959

使用 IDEA 或者 Android Studio 时,使用界面进行 git push 代码时如果出现此异常,可以使用下面的方式解决:

异常完整日志:

代码语言:javascript
复制
java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:298)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:172)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

解决方案:

Prefrences > Version Control > Git > SSH executable:选择 Native

默认是 Built-in ,它使用编辑器自带的 git,无法正常访问到我们在电脑上设置的密钥等配置,不能正常使用密钥方式无密码提交代码。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年05月31日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档