[英]Trying to pull from github i get error remote: Repository not found
My server was working fine until yesterday it was pulling fine.我的服务器一直运行良好,直到昨天它运行良好。 today I run the command
今天我运行命令
>> git pull origin <branch>
I get a response: remote: Repository not found.我收到回复:远程:找不到存储库。 I run command
我运行命令
>> ssh -T git@github.com
I get response: Hi, You've successfully authenticated.我得到回复:您好,您已成功通过身份验证。 but GitHub does not provide shell access.
但 GitHub 不提供 shell 访问权限。
>> I added ssh to my use and it has read and write ability
I even added config file like in here我什至在这里添加了配置文件
https://help.github.com/en/github/authenticating-to-github/using-ssh-over-the-https-port https://help.github.com/en/github/authenticating-to-github/using-ssh-over-the-https-port
still not working, and it'd be a mess if I create a new repo.仍然无法正常工作,如果我创建一个新的存储库,那将是一团糟。
any ideas?有任何想法吗? is there something wrong with GitHub?
GitHub 有什么问题吗? why this might happen.
为什么会发生这种情况。
If your URL ( git remote -v
) is indeed git@github.com:/如果您的 URL (
git remote -v
) 确实是 git@github.com:/
git ls-remote git@github.com:<you>/<yourRepo>
should work.git ls-remote git@github.com:<you>/<yourRepo>
应该可以工作。 If not, check the case of the URL (it is case sensitive).如果不是,请检查 URL 的大小写(区分大小写)。
And try an HTTPS URL just for testing:并尝试仅用于测试的 HTTPS URL :
git ls-remote https://github.com/<you>/<yourRepo>
That will ask for your credentials (GitHub username/password)这将要求您提供凭据(GitHub 用户名/密码)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.