git_branch
Manage Git branches by listing existing ones, creating new branches, deleting unwanted branches, or renaming branches to organize your repository workflow.
Instructions
List, create, delete, or rename branches
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory | |
| action | No | Branch action | list |
| name | No | Branch name (required for create/delete/rename) | |
| newName | No | New branch name (required for rename) | |
| force | No | Force delete or creation | |
| remote | No | List remote branches |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"default": "list",
"description": "Branch action",
"enum": [
"list",
"create",
"delete",
"rename"
],
"type": "string"
},
"cwd": {
"description": "Repository directory",
"type": "string"
},
"force": {
"default": false,
"description": "Force delete or creation",
"type": "boolean"
},
"name": {
"description": "Branch name (required for create/delete/rename)",
"type": "string"
},
"newName": {
"description": "New branch name (required for rename)",
"type": "string"
},
"remote": {
"default": false,
"description": "List remote branches",
"type": "boolean"
}
},
"type": "object"
}