git_checkout_branch
Switch to or create a Git branch in a local repository. Specify the repository path and branch name, with an optional starting point for new branches.
Instructions
Create and/or checkout a branch.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch_name | Yes | The name of the branch to checkout | |
create | No | Whether to create a new branch | |
repo_path | Yes | The path to the local Git repository | |
start_point | No | Starting point for the branch (optional) |
Input Schema (JSON Schema)
{
"properties": {
"branch_name": {
"description": "The name of the branch to checkout",
"type": "string"
},
"create": {
"default": false,
"description": "Whether to create a new branch",
"type": "boolean"
},
"repo_path": {
"description": "The path to the local Git repository",
"type": "string"
},
"start_point": {
"description": "Starting point for the branch (optional)",
"type": "string"
}
},
"required": [
"repo_path",
"branch_name"
],
"type": "object"
}