Skip to main content
Glama

Git MCP Server

branch_create

Create a new Git branch with optional tracking, upstream setup, and force creation if it exists. Specify the branch name and repository path to manage repository workflow efficiently.

Instructions

Create a new branch

Input Schema

NameRequiredDescriptionDefault
forceNoForce create branch even if it exists
nameYesBranch name
pathNoPath to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)
setUpstreamNoSet upstream for push/pull
trackNoSet 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" }

You must be authenticated.

Other Tools from Git MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/git-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server