【问题标题】:Error $ git pull --rebase Permission denied (publickey). fatal: Could not read from remote repository错误 $ git pull --rebase 权限被拒绝(公钥)。致命:无法从远程存储库中读取
【发布时间】:2014-06-24 10:57:48
【问题描述】:

尝试从 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 status 并得到了这个:

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

知道发生了什么吗?我已经克隆了代码,但我无法获取最新的更新。我被设置为应用程序的协作者,但仍然不确定为什么会出现此错误。

【问题讨论】:

标签: git heroku


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2018-08-24
    • 2014-08-30
    • 1970-01-01
    • 2014-02-10
    • 2016-11-28
    • 2021-03-22
    • 2017-07-31
    • 2019-12-30
    • 1970-01-01
    相关资源
    最近更新 更多