Skip to content

Request‑GitTag

viscalyxbot edited this page Sep 30, 2025 · 1 revision

SYNOPSIS

Fetches Git tags from a remote repository.

SYNTAX

Request-GitTag [-RemoteName] <String> [[-Name] <String>] [-Force] 
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Request-GitTag command fetches Git tags from a remote repository. It can fetch a specific tag by name or all tags if no name is specified.

EXAMPLES

EXAMPLE 1

Request-GitTag -RemoteName 'origin' -Name 'v1.0.0'

Fetches the 'v1.0.0' tag from the 'origin' remote repository.

EXAMPLE 2

Request-GitTag -RemoteName 'upstream'

Fetches all tags from the 'upstream' remote repository.

PARAMETERS

-Force

Forces the operation to proceed without confirmation prompts when similar to -Confirm:$false.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Name

Specifies the name of the specific tag to fetch. If not provided, all tags will be fetched.

Type: String
Parameter Sets: (All)
Aliases:

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

-RemoteName

Specifies the name of the remote repository to fetch tags from.

Type: String
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
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

None

This function does not accept pipeline input.

OUTPUTS

None

This function does not return any output.

NOTES

This function requires Git to be installed and accessible from the command line.

RELATED LINKS

Clone this wiki locally