gitPush
Push current branch to a remote Git repository with options for upstream tracking and force push (blocked on main/master).
Instructions
Push the current branch to a remote. Use setUpstream: true on the first push. Force push uses --force-with-lease. Blocked on main/master.
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": "gitPush"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force push with --force-with-lease. Blocked on main/master. Default: false. | |
| branch | No | Branch to push (default: current branch) | |
| remote | No | Remote name (default: origin) | |
| setUpstream | No | Set the upstream tracking branch (-u). Use on first push of a new branch. Default: false. |