create_branch
Create a new branch in a GitLab project by specifying the project ID, branch name, and source reference for development or feature work.
Instructions
Create a new branch in a GitLab project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| branch | Yes | Name for the new branch | |
| ref | No | Source branch/commit for new branch |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"description": "Name for the new branch",
"type": "string"
},
"project_id": {
"description": "Project ID or complete URL-encoded path to project",
"type": "string"
},
"ref": {
"description": "Source branch/commit for new branch",
"type": "string"
}
},
"required": [
"project_id",
"branch"
],
"type": "object"
}