错误$ git pull --rebase权限被拒绝(publickey)。致命:无法从远程存储库读取

时间:2014-05-07 12:46:27

标签: git heroku

尝试从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

知道发生了什么事吗?我已经克隆了代码,但我无法提取最新的更新。我被设置为应用程序的合作者仍然不知道为什么这个错误。

1 个答案:

答案 0 :(得分:4)

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

要么您没有权利,要么使用了错误的私钥,要么代表您注册的公钥是错误的/过时的。

相关问题