gpt4 book ai didi

Git : fatal: Could not read from remote repository. 请确保您具有正确的访问权限并且存储库存在

转载 作者:IT王子 更新时间:2023-10-29 01:26:27 24 4
gpt4 key购买 nike

我收到这个错误 -

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 git@github.com:username/repo.git (fetch)
origin git@github.com:username/repo.git (push)

ssh -Tv git@github.com 命令的最终消息 -

Hi [My Username]! You've successfully authenticated, but GitHub does not provide shell access.

我该如何解决?

最佳答案

通过远程“来源”的 http url 更改您的 ssh url,使用:

> git remote set-url origin https://github.com/<user_name>/<repo_name>.git

它会在 git push 上询问你的 GitHub 密码。

关于Git : fatal: Could not read from remote repository. 请确保您具有正确的访问权限并且存储库存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30068298/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com