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

前端 未结 2 1098
隐瞒了意图╮
隐瞒了意图╮ 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:11

    I was working on this for the past 3 hours and now i get it clearly. all you need to do is init with whatever project and all i did it "npm init"

    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题