We are using the following workflow branches:
master
develop
hotfix
branch per hotfix (branched fromrelease
tag)
When a hotfix
branch is released to production, it is merged back into develop
and master
via BitBucket pull requests.
Now I need to merge the hotfix branch to both develop
and master
. I create a BitBucket pull request to develop
, but there are merge conflicts blocking it. Simply put the ongoing development modified same files since the release tag was created.
What is the proper way to resolve this?
I'm thinking:
- creating a new branch from develop
- cherry-picking commit from hotfix branch to the new branch
- create pull request to merge the new branch to develop
but it seems like a lot of manual work (in theory - in fact I have maybe 5 commits in hotfix branch) and I'd love to have some easy way to do that that is compliant with git-flow.