Mac IDEA Git "Could not read from remote repository"问题的解决

Posted changchangchang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac IDEA Git "Could not read from remote repository"问题的解决相关的知识,希望对你有一定的参考价值。

1、说说我的问题的详情:

? 我的ssh公钥已经加入到公司的代码仓库中,使用git命令和sourceTree是可以进行拉去和推送的,但是在idea中进行拉去会显示”Could not read from remote repository“,好像是idea无法读取到我的本地的ssh私钥。

2、问题的解决方法:

? 第一步:执行命令,将SSH私钥添加到命令中的ssh-agent

ssh-add -K ~/.ssh/id_rsa

? 第二步:idea改为本地读取ssh私钥

技术图片

? 将idea此处设置改为Native即可。

以上是关于Mac IDEA Git "Could not read from remote repository"问题的解决的主要内容,如果未能解决你的问题,请参考以下文章

MAC配置git环境

解决IDEA 中git 无法自动push 提交问题 Push failed: Failed with error: Could not read from remote repository.(示例代

IntelliJ idea 报错:Could not autowire,no beans of "XXX" type found

idea 使用 mvn clean package 报错 Could not create local repository at

解决IDEA在导入Gradle项目之后报Could not resolve symbol "XXX"错误

IDEA解决"Could not autowire. No beans of 'xxxx' type found"的错误提示