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即可。

posted @ 2020-06-13 18:36  Runtimeing  阅读(1195)  评论(0编辑  收藏  举报