后来发现,出现这个问题是因为仓库地址不对 使用如下命令先查看一下: $ git remote -v 发现跟github的地址不一致 然后在终端输入:git remote set-url origin XXX 然后重新push就可以了…
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 clone 或其他命令的时候,有时候会遇到这类问题,如图: and the repository exists. fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists. 出现这个问题是因为没有在github账号添加SSH key 解决方法如下: 1.在终端输入. ssh-keygen -t…
第一次提交遇到这样的情况,怎么回事呢,我在github上提交了ssh key 的啊. 排查先看看能不能解析, 1.先 ping https://github.com 把ip添加到 host :    sudo vi /etc/hosts  (添加下面第三行) 127.0.0.1 localhost localhost.localdomain VM-0-6-ubuntu 127.0.1.1 TENCENT 192.30.255.113 github.com # 添加ip # The followi…
我们在使用git clone 或其他命令的时候,有时候会遇到这类问题,如图: fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists. 出现这个问题是因为没有在github账号添加SSH key   解决方法如下: 1.在终端输入. ssh-keygen -t rsa -C "username" (…
转自:https://zhiku8.com/git-could-not-read-from-remote-repository.html 我们在使用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…
1. 删除本地项目中的.git目录,然后向远程仓库提交代码的时候,重新配置后再次提交.会有冲突. 解决方式: git remote add origin [//your giturl] git pull origin master // 修改冲突, git push origin 分支名 2. git push时报错refusing to merge unrelated histories 解决方法 可以在pull命令后紧接着使用--allow-unrelated-history选项来解决问题(…
当执行git命令如:git clone.git pull等等 出现报错:ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. 临时解决办法: 命令如下: $ ssh -T -p 443…
当使用  git push  时,提示以下错误: fatal: remote error: You can't push to git://github.com/user/xxx.git Use https://github.com/user/xxx.git 怎么解决呢? 一条命令搞定: git remote set-url origin https://github.com/user/xxx.git 再试试  git push .…
使用 git 的命令行向 GitHub 提交的时候,报错: [Young@localhost OtherLang]$ git push origin master error: The requested URL returned error: Forbidden while accessing https://github.com/YoungZHU/OtherLang.git/info/refs fatal: HTTP request failed [解决办法] 1)在该资源库(Reposit…