< Back

Get-GitDir

Mon Jan 13, 2020 8:36 pm

NAME Get-GitDir



SYNOPSIS

Gets the parent directory of the root of the current git repository.





SYNTAX

Get-GitDir [<CommonParameters>]





DESCRIPTION





PARAMETERS

<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

You cannot pipe input to this function.





OUTPUTS

If the current location is in a git repository, the name of the parent folder; otherwise, $null.





NOTES





Author: John Meyer, AF4JM

Copyright (c) John Meyer. Licensed under the MIT License.

https://github.com/af4jm/GitHelper/blob/master/LICENSE





RELATED LINKS

https://www.powershellgallery.com/packages/GitHelper/

https://github.com/af4jm/GitHelper/