GitVersion and Fast-forward Merge - Can this work? #3671
-
Hello all I am setting up GitVersion for some repositories of mine. However, when I am not using the "Merge commit" option but instead I use the "Fast-forward merge" option, no merge commit is created and I guess GitVersion cannot figure out from which feature branch the change came. My question is, can "Fast-forward merge" and GitVersion play along? Or I can only use "Merge commit" and create new commit messages every time something is merged into main? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes I can confirm your analysis.
If the merge commit message is important to determine the version number then yes you should not merge with fast-forward mode. In your scenario it is important because git-version needs the information from where the commits are coming from. As an alternative you can use bump message like |
Beta Was this translation helpful? Give feedback.
Yes I can confirm your analysis.
If the merge commit message is important to determine the version number then yes you should not merge with fast-forward mode. In your scenario it is important because git-version needs the information from where the commits are coming from. As an alternative you can u…