繁体   English   中英

git push heroku master错误?

[英]Git push heroku master error?

我已经使用heroku create成功heroku create但是当我从git推送时,出现以下错误:-

C:\Sites\boot>git push heroku master

!  Your account snehp92@gmail.com does not have access to protected-thicket-253
8.
!
!  SSH Key Fingerprint: 6e:d8:39:da:45:ad:b5:b2:e5:36:2e:14:0e:92:b5:8e

fatal: Could not read from remote repository.

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

您需要将ssh密钥添加到heroku。 要添加密钥,请运行以下命令

heroku keys:add

如果您没有密钥,请使用以下命令生成一个新密钥

ssh-keygen -t rsa

然后将ssh密钥添加到heroku

我建议获取最新版本的Heroku Toolbelt ,然后再次添加存储库:

$ heroku login
Enter your Heroku credentials.
Email: adam@example.com
Password:
Could not find an existing public key.
Would you like to generate one? [Yn]
Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub

git remote -v
git remove heroku master

heroku git:remote -a protected-thicket-253

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM