我已经检查了很多stackoverflow,试图弄清楚为什么我会收到这个错误,因为我在github上有一个我想要推送的repo。我什至重新生成了我的 ssh 密钥并将其添加到 github。我还看到:
Please make sure you have the correct access rights
并且存储库存在。
当我尝试远程添加 repo 时,我看到:
$ git remote add origin git@github.com:<username>/<reponame>.git
> fatal: remote origin already exists.
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
然后我得到错误
当我尝试
ssh -T git@github.com
我看到正确的用户名
不知道还有什么可以尝试的。