< Back

Get-CurrentRepo

Mon Jan 13, 2020 8:30 pm

NAME Get-CurrentRepo



SYNOPSIS

Gets the information describing the repository at your current location.





SYNTAX

Get-CurrentRepo [[-Path] <String>] [<CommonParameters>]





DESCRIPTION

Considers your current location/directory and determines whether it is a valid repository.

If it is, this will retrieve the repository information describing this repo.





PARAMETERS

-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? 1

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:\\>Get-CurrentRepo



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











RELATED LINKS

Get-RepoInfo