我正在尝试使用以下命令将django项目推送到heroku:
git push staging master
和staging指的是这个git config:
[remote "staging"]
url = git@heroku.com:heorku-server.git
fetch = +refs/heads/*:refs/remotes/staging/*
但是我收到以下错误:
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.
我检查了git repo和heroku服务器,他们都有我的确切公钥。
答案 0 :(得分:1)
无法发表评论(这应该是什么回应),没有足够的魔术互联网点。
您可能需要生成一组新的SSH密钥,但我会首先尝试此主题中的内容 - Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly
这比我复制粘贴这里的步骤好吗?