I am trying to push a django project to heroku using the command:
git push staging master
and staging refers to this git config:
[remote "staging"]
url = git@heroku.com:heorku-server.git
fetch = +refs/heads/*:refs/remotes/staging/*
But I get the following error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Fatal error: local() encountered an error (return code 128) while executing 'git push staging master'
Aborting.
I checked the git repo and the heroku server and they both have my exact public key.