[英]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.