< Back

New-CreateBranch

Sun Jan 19, 2020 5:53 pm

NAME New-CreateBranch



SYNOPSIS

Create new branch





SYNTAX

New-CreateBranch [-Project] <String> [-Repository] <String> [-SourceBranch] <String> [-NewBranch] <String>

[<CommonParameters>]





DESCRIPTION

create a new branch on bitbucket from given source branch





PARAMETERS

-Project <String>

Project ID



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Repository <String>

Repository Name



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SourceBranch <String>

source branch (one which exist already)



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NewBranch <String>

New branch (To be created)

s



Required? true

Position? 4

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



NOTES





General notes



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



PS C:\\>New-CreateBranch -Project "TES" -Repository "TEST1" -SourceBranch "refs/heads/develop" -NewBranch

"release/1.0"















RELATED LINKS