Skip to content

Commit c2a7d2e

Browse files
committed
added /ovverideconfig option to command line docs
1 parent c9ce4d8 commit c2a7d2e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/usage/command-line.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,14 @@ Will result in command line argument error
5454
### Example: When AssemblyInfo.cs and AssemblyVersionInfo.cs already exist
5555
`GitVersion.exe /updateassemblyinfo AssemblyInfo.cs AssemblyVersionInfo.cs`
5656

57-
Will iterate through each file and update known attributes (`AssemblyVersion`, `AssemblyFileVersion`, `AssemblyInformationalVersion`).
57+
Will iterate through each file and update known attributes (`AssemblyVersion`, `AssemblyFileVersion`, `AssemblyInformationalVersion`).
58+
59+
## Override config
60+
`/overrideconfig [key=value]` will override appropriate key from 'GitVersion.yml'.
61+
62+
At the moment only `tag-prefix` option is supported. Read more about [Configuration](/configuration/).
63+
64+
It will not change config file 'GitVersion.yml'.
65+
66+
### Example: How to override configuration option 'tag-prefix' to use prefix 'custom'
67+
`GitVersion.exe /output json /overrideconfig tag-prefix=custom`

0 commit comments

Comments
 (0)