Skip to content

New VersionTag

Nick Spreitzer edited this page Nov 16, 2019 · 6 revisions
external help file: GitVersioning-help.xml
Module Name: WhatsNew
schema: 2.0.0

New-VersionTag

SYNOPSIS

Adds a new semantic version tag to the current git repository.

SYNTAX

New-VersionTag [-Tag] <String> [-Message] <String> [<CommonParameters>]

DESCRIPTION

Add a new annotated git tag with the specified version number and message to the HEAD commit.

EXAMPLES

Example 1

PS C:\> New-VersionTag -t v1.0.0 -m "New library ahoy!"

Creates a new annotated git tag named v1.0.0 and applies it to the HEAD commit.

PARAMETERS

-Tag

The new semantic version tag to apply. Must be in the format v0.0.0

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Message

The message to associate with the new tag.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

New-VersionTag

Clone this wiki locally