質問

I have an instance at heroku where I push the different branches of the same project for testing. Since the branches are different (although they are created off the main, develop branch) and it's only for testing, whenever I push to it I'd like that new "push" completely rewrite code there without any merging, conflicts, etc. In other worlds, I'd like kind of truncate (or recreate) my repository at heroku each time before pushing.

Is it possible?

役に立ちましたか?

解決

You can try git push heroku master --force or if you would like to deploy a specific branch, then git push heroku <branchname>:master --force

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top