Skip to main content
Glama

Git MCP Server

by Sheshiyer

checkout

Switch branches or restore working tree files in a Git repository by specifying a branch name, commit hash, or file path. Use with the Git MCP Server for enhanced Git operations.

Instructions

Switch branches or restore working tree files

Input Schema

NameRequiredDescriptionDefault
pathNoPath to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)
targetYesBranch name, commit hash, or file path

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)", "type": "string" }, "target": { "description": "Branch name, commit hash, or file path", "type": "string" } }, "required": [ "target" ], "type": "object" }

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

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