我在heroku上从v7回滚到v4(例如),这是一周前的上一个版本。由于v7引入了一些错误,我想上传一个全新的版本。我尝试在heroku上部署这个新版本,但是得到了这个错误
error: failed to push some refs to 'git@heroku.com:boiling-bastion-xxxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
因为我不想与v7有任何关系,想要上传这个新版本,我还运行git push
吗?由于最新版本(v7)引入了一些错误,我不想向前滚动。
你可以使用
git push heroku master -f
您真的不希望强制push到heroku来更改版本。正确的做法是:heroku releases:rollback [RELEASE]
heroku releases
将列出你所做的部署,以防你不知道什么部署是什么发布。