git_push
Push committed changes to a remote repository, specifying branch, remote, and optional force-push with confirmation when required.
Instructions
Push commits to a remote repository.
Requires explicit confirmation when security.require_confirmation
is enabled in config (default: True).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If True, force-push (--force-with-lease for safety). | |
| branch | No | The branch to push. Defaults to the current branch. | |
| remote | No | The remote name. Default: "origin". | origin |
| confirm | No | Set to True to confirm this potentially destructive operation when confirmation is required by config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||