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
Name | Required | Description | Default |
---|---|---|---|
path | No | Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo) | |
target | Yes | Branch name, commit hash, or file path |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Git MCP Server
Related Tools
- @cyanheads/git-mcp-server
- @modelcontextprotocol/git
- @cyanheads/git-mcp-server
- @Sheshiyer/git-mcp-v2
- @Sheshiyer/git-mcp-v2