How to reset Heroku app and re-commit everything?

前端 未结 9 2158
傲寒
傲寒 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:47

    This worked for me (from https://coderwall.com/p/okrlzg):

    1. Run heroku plugins:install https://github.com/lstoll/heroku-repo.git
    2. heroku repo:reset -a APPNAME

    From there, the git repository has been "reset". Next, run:

    1. git push heroku master -a APPNAME

    to seed the git repository and re-deploy your app.

提交回复
热议问题