@@ -13,9 +13,15 @@ GitVersion can be installed as a [.NET global tool][dotnet-tool] under the name
13
13
[ ` GitVersion.Tool ` ] [ tool ] by executing the following in a terminal:
14
14
15
15
``` shell
16
- dotnet tool install --global GitVersion.Tool --version 5. *
16
+ dotnet tool install --global GitVersion.Tool
17
17
```
18
18
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
+
19
25
If you want to pin to a specific version of GitVersion, you can find the available
20
26
versions of [ ` GitVersion.Tool ` on NuGet] ( https://www.nuget.org/packages/GitVersion.Tool/ ) .
21
27
@@ -62,15 +68,15 @@ without installing any other dependencies. To use the Docker image, execute
62
68
the following:
63
69
64
70
``` 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
66
72
```
67
73
68
74
The important arguments here are:
69
75
70
76
| Argument | Description |
71
- | --------------------------: | :----------------------------------------------------------------------------------------------------------- |
77
+ | ----------------------------: | :------------------------------------------------------------------------------------------------------------- |
72
78
| ` "$(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. |
74
80
| ` /repo ` | The directory within the Docker container GitVersion should use as its working directory. Don't change this. |
75
81
76
82
:::{.alert .alert-warning}
0 commit comments