Skip to content

Create new branch

POST
/api/v1/git/branches

Creates a new branch at the specified revision.

Parameters

Query Parameters

name*

Name of the branch to create

Typestring
Required
revision*

Revision to create the branch on, this can be a short hash, full hash or a tag

Typestring
Required

Responses

Branch created successfully

application/json
JSON
{
"head": {
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string"
},
"name": "string"
}

Samples