< Back

Switch-GitBranch

Mon Jan 13, 2020 8:39 pm

NAME Switch-GitBranch



SYNOPSIS

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





SYNTAX

Switch-GitBranch [-Name] <String> [-Force] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Name <String>

name of the branch to checkout



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

passed to git checkout



Required? false

Position? named

Default value False

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/