Implemented git branching model as shown below
http://nvie.com/posts/a-successful-git-branching-model/
But my branch develop and master gets diverged after these steps
Step 1 : merge release into master ( no fast forward)
Step 2 : merge release into develop ( no fast forward)
since merge commit from step 1 will not be available for step 2 , develop and master gets diverged.
How to ensure develop and master does not gets diverged. ?
The
git-flow
model naturally makesdevelop
andmaster
diverge. There is no way to follow that workflow and ensure that one ofdevelop
andmaster
is always an ancestor of the other.If you have a look at the commits that are in
master
and not indevelop
, you should see only merge commits:It means that, if you use the following
git-log
command, the output should be empty:If you are not satisfied by this answer, please edit your question to explain why it maters for you that
develop
andmaster
do not diverge from each other.