init cannot find the .git directory #4569
-
Hi Team, I just wanted to Confirm: I DO NOT initialize GitVersion in my project, or populate my project with the GitVersion.yml file or any NuGet packages, instead, I would just use the GitTools task in my Azure DevOps CI/CD (Deployment) pipeline, and it would calculate use the default configuration to implement SemVer? Context: Thank you in Advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's a valid assumption. The init command was more to make it easier to create a GitVersion.yaml file depending on the needs and specifics of the project. The reason we dropped was it was not well updated with the changes in the core, we also did not see to many requests on the init command. GitVersion should be usable without the init, yaml file. If you don't provide the yaml file it has some default in it. If it does not cover your workflow/release process then you introduce the file and add the settings you need |
Beta Was this translation helpful? Give feedback.
-
Thank you @arturcic |
Beta Was this translation helpful? Give feedback.
That's a valid assumption. The init command was more to make it easier to create a GitVersion.yaml file depending on the needs and specifics of the project. The reason we dropped was it was not well updated with the changes in the core, we also did not see to many requests on the init command. GitVersion should be usable without the init, yaml file. If you don't provide the yaml file it has some default in it. If it does not cover your workflow/release process then you introduce the file and add the settings you need