Skip to content

Commit 00b8458

Browse files
authored
Add documentation on detached HEAD naming
1 parent c077e9f commit 00b8458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/input/docs/reference/version-increments.md

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ If you create a branch with the version number in the branch name, such as
115115
from the branch name as a source. However, GitVersion can't use the [branch
116116
name as a version source for _other branches_][faq-branch-name-source].
117117

118+
### Detached HEAD
119+
If HEAD is in detached state tag will be `-no-branch-`.
120+
121+
Example: `0.1.0--no-branch-.1+4`
122+
118123
### Tagging commit
119124

120125
By tagging a commit, GitVersion will use that tag for the version of that

0 commit comments

Comments
 (0)