Skip to content

Get GitRootDirectory

Apostolis Bekiaris edited this page Apr 26, 2020 · 2 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Get-GitRootDirectory

SYNOPSIS

Returns the root directory of a local git repository.

SYNTAX

Get-GitRootDirectory [[-Path] <PathInfo>] [<CommonParameters>]

DESCRIPTION

Returns the root directory of a local git repository.

EXAMPLES

Example 1

PS C:\> C:\Work\eXpandFramework\DevExpress.XAF\bin> Get-GitRootDirectory


    Directory: C:\Work\eXpandFramework

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           4/20/2020  6:39 PM                DevExpress.XAF

Returns the git root of the C:\Work\eXpandFramework\DevExpress.XAF\bin

PARAMETERS

-Path

{{ Fill Path Description }}

Type: PathInfo
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
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

System.Management.Automation.PathInfo

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally