Skip to content

Commit

Permalink
Add documentation on detached HEAD naming
Browse files Browse the repository at this point in the history
  • Loading branch information
U7nk committed Jan 16, 2023
1 parent c077e9f commit 00b8458
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/input/docs/reference/version-increments.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ If you create a branch with the version number in the branch name, such as
from the branch name as a source. However, GitVersion can't use the [branch
name as a version source for _other branches_][faq-branch-name-source].

### Detached HEAD
If HEAD is in detached state tag will be `-no-branch-`.

Example: `0.1.0--no-branch-.1+4`

### Tagging commit

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

0 comments on commit 00b8458

Please sign in to comment.