Git提交时提示“Please make sure you have the correct access rights and the repository exists.”的解决方法

1.首先打开Git Bash设置名字和邮箱:

git config --global user.name "你的名字"

git config --global user.email“你的邮箱"

2.删除.SSH文件下的known_hosts(.SSH在C:\Users\Windows用户名目录下)

3.生成ssh公钥认证所需的公钥和私钥文件

ssh-keygen -t rsa -C "你的名字/你的邮箱"

然后会出现以下内容

Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
/c/Users/Administrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y(输入y)
Enter passphrase (empty for no passphrase):(回车)

Enter same passphrase again:(回车)

然后系统会自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub,将里面的内容复制到下面这里

4.在Git中输入ssh -T [email protected]验证与github连接是否成功时

The authenticity of host ‘github.com (13.250.177.223)‘ can‘t be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes(输入yes)
Warning: Permanently added ‘github.com,13.250.177.223‘ (RSA) to the list of known hosts.

Hi XXX! You‘ve successfully authenticated, but GitHub does not provide shell access.

最后再试着拉取一下项目,就成了。。

原文地址:https://www.cnblogs.com/liubingyjui/p/12360961.html

时间: 2024-10-09 05:20:53

Git提交时提示“Please make sure you have the correct access rights and the repository exists.”的解决方法的相关文章

git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”

对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directory clean) 一查意思.你的分支很干净? 干净?excuse me? 然后git push origin master一下,漫长等待了弹出了fail:#¥%@(此处省略,我们看重点) Please make sure you have the correct access rights and

(转)git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”

对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directory clean) 一查意思.你的分支很干净? 干净?excuse me? 然后git push origin master一下,漫长等待了弹出了fail:#¥%@(此处省略,我们看重点) Please make sure you have the correct access rights and

windows 部署 git 服务器报 Please make sure you have the correct access rights and the repository exists.错误

这两天在阿里云上弄windows 服务器,顺便部署了一个git服务.根据网上教程一步步操作下来,最后在 remote远程仓库的时候提示 fatal: 'yourpath/test.git' does not appear to be a git repositoryfatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository e

git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct access rights.and the repository exists.

Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repositor

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

这个问题是这样,需要在已有github账号的A机器上,再创建一个github账号,新账号创建完毕,将代码通过机器A push上之后,再另一台机器B,clone 这个项目时报出了如下错误: Permission denied (publickey).fatal: Could not read from remote repository. 解决方式是: 在clone代码的时候要使用https的形式. https://github.com/accountName/projectname.git 另外

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

1.搜索.ssh文件,删除该文件下的known_hosts文件 2.运行Git Bash,输入命令ssh-keygen -t rsa -C "username",然后一路回车 3.在.ssh文件夹里找到 id_rsa.pub文件,打开,全部复制,然后登录 https://github.com/,找到settings,配置 SSH keys 将之前复制的id_rsa.pub文件里的所有内容黏贴在下面 4.最后运行Git Bash,输入命令ssh -T [email protected]

git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案

我们在使用git clone 或其他命令的时候,有时候会遇到这类问题,如图: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: Could not read from remote repository.Please make sure you have the correct acc

提交时提示错误This Bundle is invalid.New apps and app updates submitted to the App Store must be built wit

今天传appstore的时候发生了一个问题. this bundle is invalid . new apps and app updates submitted to the app store must be built with public 在网上查了好久,始终告诉我,要使用xcode5,和IOS7但是奇怪的是我本来使用的就是xcode5.1和ios7打的包,最后试了很多次,发现大概从5月12日开始,必须使用最新的xcode5.1.1才能上传应用,最后终于解决问题. 提交时提示错误Th

git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法

根据网上教程使用git,结果没几步就开始出问题... 就是个简单的git add 看到提示的fatal,下意识的认为很严重,开始以为跟大小写有关,结果试了下还是不行 加上文件的后缀名,搞定. 并且跟大小写无关 建议:各位同学操作时,注意后缀名的问题.操作系统中隐藏了后缀名的话,命令中就不要加:如果没有设置隐藏后缀名,命令中不能丢掉 git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法 原文地址:https://www.cn