< Back

Add-AzDoGitRepoBranch

Sat Jan 18, 2020 7:36 pm

NAME Add-AzDoGitRepoBranch



SYNOPSIS

Add a new branch to a git repostiory





SYNTAX

Add-AzDoGitRepoBranch [[-AzDoConnection] <AzDoConnectObject>] [[-ApiVersion] <String>] [-Name] <String>

[-BasedOnBranchName] <String> [-NewBranchName] <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The command will add a new branch to an existing git repositories





PARAMETERS

-AzDoConnection <AzDoConnectObject>

Common Parameters



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-ApiVersion <String>

Allows for specifying a specific version of the api to use (default is 5.0)



Required? false

Position? 2

Default value $global:AzDoApiVersion

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Name of the git repository



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BasedOnBranchName <String>



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NewBranchName <String>



Required? true

Position? 5

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



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



Add-AzDoGitRepoBranch -Name <git repo name>-BranchName <branch name> -BasedOnBranchName <based on branch name>















RELATED LINKS

https://github.com/ravensorb/Posh-AzureDevOps