Skip to main content
Glama

mcp-git

by ver0-project

create-branch

Generate a new git branch from a specified repository path and branch name, with options to set a starting point, automatically switch, or force creation if it already exists.

Instructions

Create a new git branch, optionally from a specific starting point.

Input Schema

NameRequiredDescriptionDefault
branchNameYesName of the new branch to create
forceNoForce create branch, resetting it if it already exists (-B flag)
repoPathYesAbsolute path to the git repository
startPointNoStarting point for new branch (commit, branch, or tag). Defaults to current HEAD
switchToBranchNoSwitch to the new branch after creation (default: true)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branchName": { "description": "Name of the new branch to create", "type": "string" }, "force": { "description": "Force create branch, resetting it if it already exists (-B flag)", "type": "boolean" }, "repoPath": { "description": "Absolute path to the git repository", "type": "string" }, "startPoint": { "description": "Starting point for new branch (commit, branch, or tag). Defaults to current HEAD", "type": "string" }, "switchToBranch": { "default": true, "description": "Switch to the new branch after creation (default: true)", "type": "boolean" } }, "required": [ "repoPath", "branchName" ], "type": "object" }

You must to connect to the server.

Other Tools from mcp-git

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/ver0-project/mcps'

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