-
I have a fresh new git repository that has not seen any releases and so far only has some commits on branch Currently the nightly builds of branch What is the best way to make gitversion start with the initial version of e.g.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The suggested approach would be to use the https://gitversion.net/docs/reference/version-increments As well as the Configuration section: https://gitversion.net/docs/reference/configuration So you would add: next-version: 1.0.0 In the yaml file, and GitVersion would begin asserting the version number for the repository, using this as the starting point. |
Beta Was this translation helpful? Give feedback.
The suggested approach would be to use the
next-version
attribute in the GitVersion.yml file. This is mentioned in the docs on this page:https://gitversion.net/docs/reference/version-increments
As well as the Configuration section:
https://gitversion.net/docs/reference/configuration
So you would add:
In the yaml file, and GitVersion would begin asserting the version number for the repository, using this as the starting point.