git_push
Push local commits to a remote repository. Supports branch selection, setting upstream, and force push.
Instructions
Push commits to remote. Uses GITHUB_TOKEN from env if available.
Options:
branch: specific branch (default: current)
set_upstream: track new branches (default: True)
force: force push (use with caution!)
Returns: {branch, remote, sha, commits_pushed, is_new_branch, force}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | No | origin | |
| branch | No | ||
| set_upstream | No | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||