Git branches
git_branchesLists Git branches in a repository, optionally including remote branches, and returns the current branch plus branch names and last commits as structured data.
Instructions
List git branches. Returns the current branch and [name, lastCommit] pairs; a remote branch's name starts with remotes/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository path | |
| remote | No | Include remote branches |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | ||
| branches | Yes | ||
| retained | No |