我收到此错误-
D:\Projects\wamp\www\REPO [master]> git pull origin master
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git remote -v的输出
D:\Projects\wamp\www\REPO [master]> git remote -v
origin [email protected]:username/repo.git (fetch)
origin [email protected]:username/repo.git (push)
ssh的最终消息-Tv [email protected]命令-
Hi [My Username]! You've successfully authenticated, but GitHub does not provide shell access.
我该如何解决?
我在讨论中问:
确实
ssh -T [email protected]
输出中相同的用户名(in Hi [My Username]!
),如用于您的回购协议的SSH URL的一个([email protected]:username/repo.git
)?对不起,没有显示相同的名字
这意味着凭证已更改。
一个解决办法是至少复制%HOME%\.ssh\id_rsa.pub
在右GitHub的帐户的SSH密钥部分
OP添加:
我正在从事私人回购。所以在[email protected]:username / repo.git中,
我回答:
如果您能够克隆/推送到该用户名不是您自己的GitHub帐户的存储库,那一定是因为您已将先前的公共ssh密钥添加为该存储库的所有者作为该存储库的贡献者。
接下来要问那个回购所有者,将您当前的公共ssh密钥添加
%HOME%\.ssh\id_rsa.pub
到回购贡献者列表中。
因此,请与所有者确认您(意味着您的公共ssh密钥)已被声明为贡献者。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句