Skip to main content
Glama

GIT MCP Server

by markheramis

git_checkout

Switch to a specified branch or commit in a git repository, with the option to create a new branch if it does not exist, for efficient repository management.

Input Schema

NameRequiredDescriptionDefault
branchYesBranch or commit to checkout
createNoCreate new branch if it does not exist
repository_pathYesPath to the git repository

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Branch or commit to checkout", "type": "string" }, "create": { "description": "Create new branch if it does not exist", "type": "boolean" }, "repository_path": { "description": "Path to the git repository", "type": "string" } }, "required": [ "repository_path", "branch" ], "type": "object" }
Install Server

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/markheramis/mcp-git'

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