专注于 JetBrains IDEA 全家桶,永久激活,教程
持续更新 PyCharm,IDEA,WebStorm,PhpStorm,DataGrip,RubyMine,CLion,AppCode 永久激活教程

git报错:Please make sure you have the correct access rights and the repository exi

前言

今天在用idea push更新到github上时报错Please make sure you have the correct access rights and the repository exists,原来是ssh key有问题,连接不上服务器,这里记录一下解决办法

(ง •_•)ง

54_1.png

解决

1、 重新在git设置一下身份的名字和邮箱

cmd|powershell| bash进入要提交的目录下,然后

git config --global user.name "yourname"

git config --global user.email“your@email.com"

注:yourname是你要设置的名字,your@email是你要设置的邮箱。

2、 删除.ssh文件夹(直接搜索该文件夹)下的known_hosts,删除

3、 git bash输入命令

ssh-keygen -t rsa -C “your@email.com”(请填你设置的邮箱地址)

就像这样,然后一直回车就行了

54_2.png

打开提示的 /c/Users/Acer/.ssh/

54_3.png

id_rsa是私钥,要保管好,id_rsa.pub是公钥,复制里面的内容

4、 打开giuhub进行配置

右上角图标-> settings-> SSH and GPG keys

54_4.png

54_5.png

把公钥粘贴进去

54_6.png

5、 重新push

54_7.png

成功 YEAH! ^o^y

希望对你有帮助

文章永久链接:https://tech.souyunku.com/29480

未经允许不得转载:搜云库技术团队 » git报错:Please make sure you have the correct access rights and the repository exi

JetBrains 全家桶,激活、破解、教程

提供 JetBrains 全家桶激活码、注册码、破解补丁下载及详细激活教程,支持 IntelliJ IDEA、PyCharm、WebStorm 等工具的永久激活。无论是破解教程,还是最新激活码,均可免费获得,帮助开发者解决常见激活问题,确保轻松破解并快速使用 JetBrains 软件。获取免费的破解补丁和激活码,快速解决激活难题,全面覆盖 2024/2025 版本!

联系我们联系我们