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

前端 未结 13 1464
孤独总比滥情好
孤独总比滥情好 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:19

    When you run git push heroku master, git is assuming that you are pushing from master, so if you changes are in other branch, you will try to push your master branch without changes.

    You have two options

    1.Merge your changes with master and push them.

    Commit your changes in your actual branch, then merge them with master

    git commit -a - m "your messages"
    git checkout master
    git merge your_feature_branch
    git push heroku master
    

    2.Push your changes from your actual branch

    git push heroku your_feature_branch:master
    

提交回复
热议问题