checkout
Switch branches or restore working tree files in Git repositories with a specified target (branch, commit hash, or file path). Simplifies repository management within the MCP server framework.
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
- @Sheshiyer/git-mcp-v2
- @modelcontextprotocol/git
- @cyanheads/git-mcp-server
- @Sheshiyer/git-mcp-v2
- @cyanheads/git-mcp-server