Hi there,
Our team has recently implemented a gitflow strategy for managing our code base. In simple terms, the strategy is
- Create feature branch from develop branch
- Checkout feature branch to local copy
- Development fase
- Git add <changes>
- Git commit -m "Message"
- Git pull origin feature/branch
- Git push origin feature/branch
- Git checkout develop
- Git pull origin develop
- Git merge feature/branch
- Git push origin develop
- Developer creates PR to release branch and awaits for approval
As you can imagine, after a while, theres a set of Open PR's in BitBucket to be merged into release branch. Each related to different feature branches.
Then, one developer, due to a hotfix, for instance, merges a specific feature branch to that release branch and some of the previous PRs get merged also with the message that <developer> remotely merged <feature> into <release>.
And that's not really the intention here. We should be able to merge ONLY the specific branch intended to.
Can you please assist in what are we doing wrong?
Many thanks.