git_checkout
Switch to a specified branch or commit in a Git repository using the GIT MCP Server. Optionally create a new branch if it does not exist. Simplify repository management through automated workflows.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | Yes | Branch or commit to checkout | |
create | No | Create new branch if it does not exist | |
repository_path | Yes | Path to the git repository |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"branch": {
"description": "Branch or commit to checkout",
"type": "string"
},
"create": {
"description": "Create new branch if it does not exist",
"type": "boolean"
},
"repository_path": {
"description": "Path to the git repository",
"type": "string"
}
},
"required": [
"repository_path",
"branch"
],
"type": "object"
}