Using gitflow, when creating a release-1.0.0 branch and merging it to both master and develop, both branches will have a missing commit:
masterwont have the commit whererelease-1.0.0was merge todevelopdevelopwont have the commit whererelease-1.0.0was merge tomaster
Instead, after hotfix-1.0.1 is created and merged to master, when it is being merged to develop, the commits to merge will include the previous commit where release-1.0.0 was merged to master; so it will look like this:
User 'john doe' is trying to merge the following commits into 'develop' from 'hotfix-1.1.1'. * merge release-1.0.0 to master * merge release-1.1.0 to master * Fix shopping cart critical bug If this sounds confusing, you can easily notice this everytie you see develop is usually a couple of commits behind master (even though develop, theoretically, should only be ahead since it's the main branch. Those commits are merges from release-x.x.x to master).
How should this be handled to maintain a clean history?