@@ -13,9 +13,15 @@ GitVersion can be installed as a [.NET global tool][dotnet-tool] under the name
1313[ ` GitVersion.Tool ` ] [ tool ] by executing the following in a terminal:
1414
1515``` shell
16- dotnet tool install --global GitVersion.Tool --version 5. *
16+ dotnet tool install --global GitVersion.Tool
1717```
1818
19+ :::{.alert .alert-info}
20+ ** Hint:** To install an older version of GitVersion.Tools, use the --version flag of dotnet tool install
21+
22+ Example: ` dotnet tool install GitVersion.Tool --global --version 5.* `
23+ :::
24+
1925If you want to pin to a specific version of GitVersion, you can find the available
2026versions of [ ` GitVersion.Tool ` on NuGet] ( https://www.nuget.org/packages/GitVersion.Tool/ ) .
2127
@@ -62,15 +68,15 @@ without installing any other dependencies. To use the Docker image, execute
6268the following:
6369
6470``` shell
65- docker run --rm -v " $( pwd) :/repo" gittools/gitversion:5.6.6 /repo
71+ docker run --rm -v " $( pwd) :/repo" gittools/gitversion:latest-debian.12 /repo
6672```
6773
6874The important arguments here are:
6975
7076| Argument | Description |
71- | --------------------------: | :----------------------------------------------------------------------------------------------------------- |
77+ | ----------------------------: | :------------------------------------------------------------------------------------------------------------- |
7278| ` "$(pwd):/repo" ` | Maps the output of ` pwd ` (the working directory) to the ` /repo ` directory within the Docker container. |
73- | ` gittools/gitversion:5.6.6 ` | The name and tag of the GitVersion container to use. |
79+ | ` gittools/gitversion:{tag} ` | The name and tag of the GitVersion container to use. |
7480| ` /repo ` | The directory within the Docker container GitVersion should use as its working directory. Don't change this. |
7581
7682:::{.alert .alert-warning}
0 commit comments