< Back
Git-OpenOriginUrl
Post
NAME Git-OpenOriginUrl
SYNOPSIS
This script will take first link from 'git remote -v'
and open it in selected browser
SYNTAX
Git-OpenOriginUrl [-RepositoryDirectory] <String> [[-Browser] <String>] [[-Sleep] <Int16>] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-RepositoryDirectory <String>
Git repository root folder.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Browser <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Sleep <Int16>
Use sleep if you wannt to add some dely before closing the powershell host.
Delay in seconds.
Required? false
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Git-OpenOriginUrl 'C:\\Code\\Powershell'
RELATED LINKS
SYNOPSIS
This script will take first link from 'git remote -v'
and open it in selected browser
SYNTAX
Git-OpenOriginUrl [-RepositoryDirectory] <String> [[-Browser] <String>] [[-Sleep] <Int16>] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-RepositoryDirectory <String>
Git repository root folder.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Browser <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Sleep <Int16>
Use sleep if you wannt to add some dely before closing the powershell host.
Delay in seconds.
Required? false
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Git-OpenOriginUrl 'C:\\Code\\Powershell'
RELATED LINKS