gpt4 book ai didi

git - 无法将我的代码推送到 Heroku : Permission denied fatal: Could not read from remote repository

转载 作者:太空狗 更新时间:2023-10-29 13:38:29 24 4
gpt4 key购买 nike

我正在尝试使用这一行将我的代码推送到 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com