< Back

Set-Repository

Mon Jan 13, 2020 8:39 pm

NAME Set-Repository



SYNOPSIS

Sets the current location to the root of the specified repository.





SYNTAX

Set-Repository [-Name] <String> [-Path <String>] [-WhatIf] [-Confirm] [<CommonParameters>]



Set-Repository [-Name] <String> [-LiteralPath <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Name <String>

repository to set current location to



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

path to repositories folder, ${global:AF4JMsrcPath} if not specified



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LiteralPath <String>

literal path to repositories folder, ${global:AF4JMsrcPath} if not specified



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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

You cannot pipe input to this function.





OUTPUTS

Nothing is output from this function.





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/