git push heroku master getting following error

巧了我就是萌 提交于 2019-12-13 06:52:45

问题


I'm attempting to deploy my code to heroku with the following command line:

 $ git push heroku master
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

回答1:


You need to add your key.

 heroku keys:add ~/.ssh/id_rsa.pub

see this: https://devcenter.heroku.com/articles/keys



来源:https://stackoverflow.com/questions/17006629/git-push-heroku-master-getting-following-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!