Push to Heroku denied - “failed to push some refs to 'heroku”

前端 未结 2 1114
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 07:40

I should start by saying I\'m totally new to Heroku, and it\'s all looking pretty to foreign to me right now.

Anyway, I\'ve done the Heroku getting started tutorial

2条回答
  •  攒了一身酷
    2020-12-19 08:24

    It seems that you have not initiated your master branch properly. Have you commited your files? Try (assuming you are on master branch):

    git add .
    git commit -m "First commit"
    git push heroku master:master
    

    Another, more direct approach, is to push the HEAD:

    git push heroku HEAD:master
    

提交回复
热议问题