无法在GitHub上推送错误:找不到存储库



我在git和github上遇到了一个非常奇怪的问题。当我尝试推送时,我得到了

git push -u origin fix-validation
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@github.com:account-name/repo-name.git

看起来您正在通过ssh访问远程。确保您的ssh配置正常工作(您已经生成了一个密钥对,并将公钥复制到您的github帐户中(。

最简单的方法是将https://等效文件添加为远程文件。

相关内容

最新更新