Skip to main content
Glama

Unrestricted Development MCP Server

git_checkout

Switch between Git branches, restore files to specific versions, or create new branches to manage your code changes and repository state.

Instructions

Switch branches or restore files

Input Schema

NameRequiredDescriptionDefault
targetYesBranch name, commit hash, or file path to checkout
cwdNoRepository directory
createBranchNoCreate new branch
forceNoForce checkout, discarding local changes

Input Schema (JSON Schema)

{ "properties": { "createBranch": { "default": false, "description": "Create new branch", "type": "boolean" }, "cwd": { "description": "Repository directory", "type": "string" }, "force": { "default": false, "description": "Force checkout, discarding local changes", "type": "boolean" }, "target": { "description": "Branch name, commit hash, or file path to checkout", "type": "string" } }, "required": [ "target" ], "type": "object" }

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/ConnorBoetig-dev/mcp2'

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