700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > git clone报错:Please make sure you have the correct access rights and the repository exist

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

时间:2021-12-31 13:20:24

相关推荐

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

原因:git 没有添加ssh密钥

解决方法:

1.输入设置用户名和邮箱的命令:

$ git config --global user.name "fangfang"

$ git config --global user.email "123456789@"

2.然后系统会自动在.ssh文件夹(一般在c盘)下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub

3.把里面的内容全选复制,依照图一、图二、图三、图四依次找到new SSH Key按钮,点击按钮,把复制的内容粘贴进去,点击add ssh key即可

图一

图二

图三

图四

5.回到git bash 输入命令ssh -T git@ ,运行后在输入yes,回车,就ok了

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