问题描述
我在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://作为远程服务器。