在github上clone项目时,有时会遇见此问题:please make sure you have the correct access rights and the repository exists,该如何解决此问题呢?
第一步:
git config --global user.name "githubName"
git config --global user.email "githubEmail"

第二步:
在电脑C盘中搜索 .ssh ,找到.ssh文件,删除 .ssh文件中

第三步:
ssh-keygen -t rsa -C "githubEmail"

此时 .ssh 文件中会生成以下文件,找到id_rsa.pub用记事本打开,将其内容复制

第四步:
点击 New SSH key,将id_rsa.pub全部内容复制到 Key 框中


第五步:
ssh -T git@github.com
如果

本文详细介绍了在GitHub上遇到'please make sure you have the correct access rights and the repository exists'错误时的解决步骤,包括设置Git全局用户名和邮箱,检查SSH配置,生成新的SSH密钥,添加SSH key到GitHub账号,以及验证连接。通过这些步骤,可以确保成功克隆仓库。
1500

被折叠的 条评论
为什么被折叠?



