I have the following scenario:
- Master-branch: what is in production, can contain hotfixes
- Develop-branch: the branch my developers are using to create pull requests to
- feature-branches: the branch we create for the feature the developer is implementing.
Once the developer has finished its work, he creates a pull request on the develop branch. After approval, we squash-merge the feature branch onto the develop branch in order to not include all the commits the developer made on the feature branch. This allows us to have a clear and clean git history on the develop branch.
Sometimes the feature branch needs a rebase from the develop branch and this is where the trouble starts.. When we rebase the feature branch with the develop branch, all of the sudden a lot of commits from the develop branch are included in the pull request.
How can this be avoided so that the PR only includes the actual commits from the feature branch?
master
anddevelop
? i.e. Ismaster
lagging behinddevelop
slightly, but otherwise identical? Other than feature branches, are there any other branches which contribute todevelop
too? – Press