Skip to content

GitVersion and Fast-forward Merge - Can this work? #3671

Closed Answered by HHobeck
ChristosMonogios asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Yes I can confirm your analysis.

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?

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristosMonogios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants