Branch configuration

Branch settings apply through the effective configuration. A label changes the calculated semantic version. Use workflow examples to understand the effect of changes.

Setting Detailed reference
branches branches
regex regex
source-branches source-branches
is-source-branch-for is-source-branch-for
increment increment
label label
label-number-pattern label-number-pattern
mode mode
is-main-branch is-main-branch
is-release-branch is-release-branch
prevent-increment-of-merged-branch prevent-increment-of-merged-branch
prevent-increment-when-branch-merged prevent-increment-when-branch-merged
prevent-increment-when-current-commit-tagged prevent-increment-when-current-commit-tagged
track-merge-message track-merge-message
track-merge-target track-merge-target
tracks-release-branches tracks-release-branches

Defaults can depend on the selected workflow and branch. The linked reference supplies accepted values, scope, and examples. Inspect the effective result with dotnet-gitversion --show-config.

All settings · Complete configuration reference