Skip to content

git_create_branch

MCP tools › Version control

Create a local branch at a start revision (default HEAD) without switching to it.

Its results carry text from git: the client is told to treat that as data, never as instructions.

Capabilitygit.git_create_branch
AreaVersion control
Accesschanges repository
Reaches—
Rightsvcs-write
Dry runnone

Arguments

ArgumentTypeDescription
namerequiredstringNew branch name, e.g. feature/login.
startstringStart revision (default HEAD).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project git_create_branch '{"name":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "New branch name, e.g. `feature/login`.",
"type": "string"
},
"start": {
"description": "Start revision (default HEAD).",
"type": [
"string",
"null"
]
}
}
}