700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 解决Please make sure you have the correct access rights and the repository exists 问题

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

时间:2022-11-29 07:46:22

相关推荐

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

**

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

(一)

原因如下:

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

解决方法:

1.删除.ssh下所有所有文件(删过了,一般都在C盘user/administer目录下)

2.新建一个·文件夹,git bash

3.重新设置用户名,邮箱(全局用户)

1.设置用户名git config --global user.name ‘liudanyang’2.设置用户名邮箱git config --global user.email ‘liudanyang@’3.查看设置git config --list

4.输入以下命令,修改后面的邮箱即可

ssh-keygen -t rsa -C "liudanyang@"

5.回车回车回车

6.配置github

7.配置ssh

(二)

错误页面显示如下:

重复(一)上面的创建公钥文件步骤

(1)重新生成sshssh-keygen -t rsa -C “xxxxx@”(2)查看你的 public keycat ~/.ssh/id_rsa.pub(以ssh-rsa 开头,以账号的注册邮箱结尾的)(3)将它添加到码云,添加地址 /profile/sshkeys

如果之前有公钥,可删除,重新从新生成的公钥文件里面复制粘贴

(4)终端输入ssh -T git@

(5)接下来你会收到邮件显示新的公钥可用......

**ps:方法一在github里面那个没有成功

码云(gitee)上修改公钥(之前有创建过公钥在码云上把之前的删除(不删除也行))码云上创建公钥(之前没有创建过公钥)成功

**

两个错误页面均解决:

end

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。