git_remote_status
Compare local and remote branch status to see how many commits your branch is ahead or behind. Optionally refresh remote data first for accurate results.
Instructions
Read local-vs-remote branch state using structured Git commands. Set refresh=true to fetch the selected branch first so ahead/behind is based on current remote state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| branch | No | Branch; defaults to the current branch. | |
| remote | No | Remote name; defaults to origin. | |
| refresh | No | Fetch remote/branch before computing ahead/behind. |