Android Studio - 推送失败:致命:无法从远程存储库读取 [英] Android Studio - Push failed: fatal: Could not read from remote repository

查看:659
本文介绍了Android Studio - 推送失败:致命:无法从远程存储库读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android Studio上有一个git项目,在BitBucket上有一个远程控制器,我将它改为使用SSH而不是HTTPS。我可以使用Atlassian的SourceTree工作,但是在Android Studio中,每当我尝试推送项目时,它都会显示
$ b

I have a git project at Android Studio and a remote at BitBucket and I changed it to use SSH instead of HTTPS. I can make everything work using Atlassian's SourceTree, but in Android Studio every time I try to push the project it says


推送失败:致命:无法从远程存储库读取数据。

Push failed: fatal: Could not read from remote repository.

有人对可能发生的事情有所了解吗?

Does anyone have a clue about what could be happening?

推荐答案

这可能是一个Intellij问题。您的密钥由ssh本地管理,Intellij拥有自己的ssh程序。

This is probably an Intellij problem. Your key are managed natively by ssh, and Intellij has it's own ssh program.

转至设置,搜索git-> ssh可执行文件,然后选择本地

Go to the settings, search git->ssh executable then choose native

如下所示:

As seen here : git with IntelliJ IDEA: Could not read from remote repository

这篇关于Android Studio - 推送失败:致命:无法从远程存储库读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆