How to reset Heroku app and re-commit everything?

前端 未结 9 2081
傲寒
傲寒 2020-12-07 09:57

I\'m building an application which I\'m also testing in Heroku. I ran into some problem today and had to rollback one commit in my local git repo, but Heroku now won\'t reco

9条回答
  •  有刺的猬
    2020-12-07 10:40

    This doesn't work in all situations, but if your local repo has diverged from the Heroku repo such that git can't figure out how to reconcile the two -- like if you rebased your local branch after it was pushed to Heroku -- you can force a push by putting a plus sign + before the ref, like this:

    git push heroku +master
    

    It may not work in your case, but it's worth a try.

提交回复
热议问题