I am trying retrospectively apply the principles of git flow to my repository.
I have all my releases tagged, and I would like to
- Create a new master branch
- Merge each tagged release into the new master branch as a squashed commit.
with the result being a master branch with a history containing only releases.
I tried to do the above, the first merge went as expected. And a diff confirmed that my master branch was identical to the tagged release. The second commit appeared to merge correctly, however a diff with the corresponding tagged release commit revealed many differences.
What could account for the tagged release merge resulting in a commit that was different?
How do I ensure the result of the merge is exactly the same as the tagged release commit?
Thanks