How to merge release branch to main in case of conflicts

78 Views Asked by At

I have a release branch. After releasing the version, I am creating a tag and merging the branch into develop. In some cases there are merge conflicts. What is the best way to resolve conflicts, should I resolve them while merging onto the tip of main branch? what is the best practice.

P.s we are using bitbucket

1

There are 1 best solutions below

0
VonC On

A release branch is an integration branch (A branch where you integrate multiple feature branches in order to build your release, gitworkflow-style)

The best practice is to not merge integration branches (like dev or main or master) to other branches.

Integration branches are branches you are merging to, not from.

Ideally, you would reset/recreate develop on top of the new release, and go on from there.
Or you would rebase develop on top of that release tag.