Assume I have three branches master,develop and release in remote repository.
- When a PR is raised against master branch (assume commit ID is
ae3r4...
), I can merge using one of the three options that Github provides- Create a merge commit
- Squash and merge
- Rebase and merge
- In all of the options a new merge commit is created and in the
history of master commits, I see a new commit ID (
233f1d...
). - When I raise a PR against develop from master, release from master a new commit will be again created in every one of these branches.
I don't want that. When I merge a new commit in master, I want the same commit to be present in develop and release. How do I do it? How is this generally done in organisations to point to the same commit from different branches, like a bash script or from the UI? Coz, whenever we merge a commit to master this has to happen, so it'd be helpful if the solutions takes into account the maintenance part too.