Incerteza
Incerteza

Reputation: 34884

Rewriting code in a repository at heroku each time I push to it

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?

Upvotes: 0

Views: 34

Answers (1)

derekyau
derekyau

Reputation: 2946

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

Upvotes: 1

Related Questions