-
Notifications
You must be signed in to change notification settings - Fork 1
Get‑GitRemote
Retrieves the names or URL(s) of the specified Git remote or all remotes.
Get-GitRemote [[-Name] <String>] [<CommonParameters>]
Get-GitRemote [-Name] <String> [-PushUrl] [<CommonParameters>]
Get-GitRemote [-Name] <String> [-FetchUrl] [<CommonParameters>]
The Get-GitRemote commands retrieves the names or URL(s) of the specified Git remote or all remotes. It can be used to get the name of a remote or the URL(s) for fetching or pushing.
Get-GitRemote
Returns the names of all Git remotes.
Get-GitRemote -Name origin
Returns the name of the Git remote named 'origin' if it exist.
Get-GitRemote -Name origin -FetchUrl
Returns the URL for fetching from the Git remote named 'origin'.
Get-GitRemote -Name origin -PushUrl
Returns the URL for pushing to the Git remote named 'origin'.
Indicates that the URL(s) for fetching should be retrieved.
Type: SwitchParameter
Parameter Sets: FetchUrl
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the name of the Git remote.
Type: String
Parameter Sets: Default
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseType: String
Parameter Sets: PushUrl, FetchUrl
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIndicates that the URL(s) for pushing should be retrieved.
Type: SwitchParameter
Parameter Sets: PushUrl
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Assert-GitLocalChange
- Assert-GitRemote
- Assert-IPv4Address
- Clear-AnsiSequence
- ConvertTo-AnsiSequence
- ConvertTo-AnsiString
- ConvertTo-DifferenceString
- ConvertTo-RelativePath
- Disable-CursorShortcutCode
- Get-ClassAst
- Get-ClassResourceAst
- Get-GitBranchCommit
- Get-GitLocalBranchName
- Get-GitRemote
- Get-GitRemoteBranch
- Get-GitTag
- Get-LinkLayerAddress
- Get-ModuleByVersion
- Get-ModuleFileSha
- Get-ModuleVersion
- Get-NumericalSequence
- Get-PSReadLineHistory
- Get-TextOffset
- Install-ModulePatch
- Invoke-Git
- Invoke-PesterJob
- New-GitTag
- New-SamplerGitHubReleaseTag
- Out-Difference
- Pop-VMLatestSnapshot
- Push-GitTag
- Receive-GitBranch
- Remove-GitTag
- Remove-History
- Remove-PSHistory
- Remove-PSReadLineHistory
- Rename-GitLocalBranch
- Rename-GitRemote
- Request-GitTag
- Resolve-DnsName
- Resume-GitRebase
- Send-WakeOnLan
- Split-StringAtIndex
- Start-GitRebase
- Stop-GitRebase
- Switch-GitLocalBranch
- Test-FileHash
- Test-GitLocalChanges
- Test-GitRemote
- Test-GitRemoteBranch
- Test-IPv4Address
- Update-GitLocalBranch
- Update-RemoteTrackingBranch