zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

2023-02-26 12:28:10 时间

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

1.原因:

公钥出现问题

(福利推荐:阿里云、腾讯云、华为云服务器最新限时优惠活动,云服务器1核2G仅88元/年、2核4G仅698元/3年,点击这里立即抢购>>>

2.解决办法:

(1)在需要提交文件的目录内,重新设置git用户名字和邮箱

git config --global user.name "yourname" #yourname你设置的名字 git config --global user.email "[email protected]" #你的邮箱

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

(2)生成密钥

ssh-keygen -t rsa -C "[email protected]" #填写设置的邮箱 #回车出现: Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/yz/.ssh/id_rsa):  #请按下回车  Enter passphrase (empty for no passphrase): #回车 Enter same passphrase again: #回车  #出现Your public key has been saved in /c/Users/yz/.ssh/id_rsa.pub 表示成功,公钥保存在/c/Users/yz/.ssh/id_rsa.pub #复制id_rsa.pub内的公钥

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

(3)打开github,进入设置

点击左侧的 SSH and GPG keys,新建ssh key,将刚才复制公钥粘贴,然后点击添加即可。

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


本站部分内容转载自网络,版权属于原作者所有,如有异议请联系QQ153890879修改或删除,谢谢!
转载请注明原文链接:Please make sure you have the correct access rights and the repository exists

你还在原价购买阿里云、腾讯云、华为云、天翼云产品?那就亏大啦!现在申请成为四大品牌云厂商VIP用户,可以3折优惠价购买云服务器等云产品,并且可享四大云服务商产品终身VIP优惠价,还等什么?赶紧点击下面对应链接免费申请VIP客户吧:

1、点击这里立即申请成为腾讯云VIP客户

2、点击这里立即注册成为天翼云VIP客户

3、点击这里立即申请成为华为云VIP客户

4、点击这里立享阿里云产品终身VIP优惠价

喜欢 (0)
[[email protected]]
分享 (0)