branch_create
Create a new branch in a specified Git repository using the Git MCP Server. Input branch name and repository path; optionally force creation, set tracking, or configure upstream for push/pull operations.
Instructions
Create a new branch
Input Schema
Name | Required | Description | Default |
---|---|---|---|
force | No | Force create branch even if it exists | |
name | Yes | Branch name | |
path | No | Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo) | |
setUpstream | No | Set upstream for push/pull | |
track | No | Set up tracking mode |
Input Schema (JSON Schema)
{
"properties": {
"force": {
"default": false,
"description": "Force create branch even if it exists",
"type": "boolean"
},
"name": {
"description": "Branch name",
"type": "string"
},
"path": {
"description": "Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)",
"type": "string"
},
"setUpstream": {
"default": false,
"description": "Set upstream for push/pull",
"type": "boolean"
},
"track": {
"default": true,
"description": "Set up tracking mode",
"type": "boolean"
}
},
"required": [
"name"
],
"type": "object"
}