git push heroku master says “Everything up-to-date”, but the app is not current

前端 未结 13 1460
孤独总比滥情好
孤独总比滥情好 2020-12-02 09:00

I have an app on Heroku that is running old code. I\'ve made a small change and committed the change. I then ran

git push heroku master

I

13条回答
  •  悲&欢浪女
    2020-12-02 09:25

    I had a similar issue and by no means my changes were visible on heroku. To reconfirm myself I even took a clone from heroku and it was obviously up to date.

    I could resolve my issue only by following this approach:

    Step 1: Make a new branch from master

    git checkout -b new_branch
    

    Step 2: Just add a comment in any file to make a new commit and then:

    git add .
    git commit -m "Just a test commit to push new branch to heroku"
    

    Step 3: Push the new branch to heroku.

    git push heroku new_branch:master
    heroku restart
    

    You could now see your changes successfully on heroku.

提交回复
热议问题