当前位置:   article > 正文

解决:从idea提交项目时出现Could not read from remote repository.Please make sure you have the correct access r

解决:从idea提交项目时出现Could not read from remote repository.Please make sure you have the correct access r

解决:从idea提交项目时出现Could not read from remote repository.Please make sure you have the correct access rights的解决办法

出现原因:之前在使用git时开了私钥,当使用公钥时不匹配
具体解决过程
1、打开c盘中用户目录,右击进入git bash here
在这里插入图片描述
2、输入如下命令,中间如果暂停一直按回车,直到结束。
在这里插入图片描述
3、关闭这个界面,在该文件夹下找到.ssh文件,点进去,用记事本打开如下文件,复制公钥。
在这里插入图片描述
4、打开git,先找到设置,然后点击公钥这个界面,将刚才复制的公钥粘贴到相应的位置保存即可。
在这里插入图片描述
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/963662
推荐阅读
相关标签
  

闽ICP备14008679号