git_branch
List, create, or switch Git branches to start feature work and avoid protected-branch commit refusal.
Instructions
List branches, or create / switch to one. Creating a feature branch is the normal first step before making changes, since commits to protected branches are refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Base ref for a new branch. Default: the current HEAD. | |
| name | No | Branch to create or switch to. Omit to list branches. | |
| create | No | Create the branch. Default false (switch to an existing one). | |
| workspace | No | Workspace alias. Defaults to the active workspace. |