错误$ git pull—rebase Permission denied (publickey).致命:无法从远程存储



当尝试从heroku git中拉代码时,我得到以下错误

$ git pull --rebase
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

我检查了git状态,得到了这个:

$ git status
# On branch master
nothing to commit, working directory clean

知道是怎么回事吗?我已经克隆了代码,但我不能拉最新的更新。我被设置为应用程序上的合作者,所以不确定为什么会出现这个错误。

如错误信息所示,这与您的工作目录无关。

您没有权限,您使用了错误的私钥,或者为您注册的公钥是错误的/过时的

最新更新