Skip to content

Increment version number based on branch type #3025

Answered by asbjornu
niko124a asked this question in Q&A
Discussion options

You must be logged in to vote

Since branches are ephemeral (they are usually deleted after they are merged), there is not really anything in Git that preserves what branch the commits in a merge commit came from. The merge message may contain that information, but it's not guaranteed. Therefore, GitVersion uses git tag as the persistent and consistent way to indicate the version number on non-ephemeral branches such as main and develop.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@niko124a
Comment options

Answer selected by niko124a
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