run_git
Execute git commands and retrieve stdout output for common operations like status, diff, log, add, commit, branch, and push.
Instructions
Executes a git command and returns stdout. Use for: git status, diff, log, add, commit, branch, push, etc. Requires git on PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory (repo root). Defaults to current directory. | |
| command | Yes | The git sub-command and args, e.g. 'status' or 'commit -m "feat: add X"'. |