我正在尝试使用这一行将我的代码推送到 Heroku:
git push heroku master
但我不断收到以下错误/消息:
Warning: Permanently added 'heroku.com,50.85.49.333' <RSA> to the list of known hosts.
Permission denied <public key>
fatal: Could not read from remote repository
Please make sure you have the correct access rights and the repository exists.
我已经上传了我的 key :
heroku keys:add ~/.ssh/id_rsa.pub
然后将我的 Remote 设置为 git url:
git remote set-url heroku git@heroku.com:project-name.git
仍然没有运气。谁能指出问题所在?
我正在关注 THIS简短的啧啧。
最佳答案
我真的应该在发布这个问题之前更加努力地搜索,因为我在另一个名称几乎相同的问题中找到了答案。
Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes
关于git - 无法将我的代码推送到 Heroku : Permission denied <public key> fatal: Could not read from remote repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19539671/