< Back

Open-Repo

Mon Jan 13, 2020 8:33 pm

NAME Open-Repo



SYNOPSIS

Changes your location to the directory of the repository you have specified.





SYNTAX

Open-Repo [-Repo] <String> [[-Service] <String>] [[-Path] <String>] [<CommonParameters>]





DESCRIPTION

Quickly changes the location of your session to the directory holding the

repository you have specified, if it exists.





PARAMETERS

-Repo <String>

The name of the repository which you would like to open.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Service <String>

The remote hosting provider from which you would like to open the repository.



Required? false

Position? 2

Default value $GitTool.Service

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

The directory within which all of your repositories are stored. Defaults to the value of $GitTool.Directory

if not specified.



Required? false

Position? 3

Default value $GitTool.Directory

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:\\>Open-Repo sierrasoftworks/git-tool



Name Value

---- -----

WebURL https://github.com/SierraSoftworks/git-tool

Service github.com

Repo SierraSoftworks/git-tool

Path C:\\dev\\github.com\\SierraSoftworks\\git-tool

Exists True

GitURL git@github.com:SierraSoftworks/git-tool.git



C:\\dev\\github.com\\SierraSoftworks\\git-tool PS>











RELATED LINKS