Reputation: 10241
I am getting the following error when trying to pull code from 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.
I checked git status and got this:
$ git status
# On branch master
nothing to commit, working directory clean
Any idea what is going on? I already cloned the code but I can't pull the latests updates. I am set as a collaborator on the app still so not sure why this error.
Upvotes: 1
Views: 3753
Reputation: 6088
As the error message suggests, this has nothing to do with your working directory.
Either you do not have the rights, you are using a wrong private key, or the public key registered on your behalf is erroneous/outdated.
Upvotes: 4