pronghorn-core

On this page:

createBranch

Summary

Create a new branch in a repository

Description

Create a new branch in a repository

Route

POST /git/:gitType/repos/:repoPath/branches

Roles

Parameters

DetailsExampleSchema
Name Type Required Description
gitType string yes The name of the Git provider that is used
repoPath string yes The path in Git to the repository
originBranch string yes The name of the old branch to create a branch from.
newBranch string yes The name of the new branch that is used.

Return

DetailsExampleSchema
Name Type Description
result object The result of creating a branch