Git MCP Server

checkout

Switch branches or restore working tree files in a Git repository by specifying the target branch, commit hash, or file path. Supports enhanced Git operations via the Git MCP Server.

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" }

You must be authenticated.

Other Tools from Git MCP Server

Related Tools

ID: 46aozzlyhx