解决Please make sure you have the correct access rights and the repository exists 问题.

发布时间 2023-10-09 12:27:00作者: 鼬先生*

问题:
Please make sure you have the correct access rights and the repository exists

请确保您具有正确的访问权限并且存储库存在

 

 

 

 

原因:
公钥出问题了,需要删除.ssh下文件,然后重设置用户名和邮箱再重新生成ssh公钥即可解决

 

解决:
步骤一:删除.ssh下所有所有文件

 

 

 

 

步骤二:

 

 

 

1.设置用户名

git config --global user.name ‘zhandehuang’

2.设置用户名邮箱

git config --global user.email ‘it_zdh@163.com’

3.查看设置

git config --list

 

 

 

 

 

然后继续输入命令:修改后面的邮箱即可

ssh-keygen -t rsa -C "it_zdh@163.com"

 

 

 

 

配置:github

 

 


配置SSH

 

 


完成