Push
push
GitPushTool — push current branch with dirty-check and upstream detection.
GitPushTool
Bases: AXMTool
Push the current branch after verifying a clean working tree.
Registered as git_push via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/push.py
name
property
Tool name used for MCP registration.
execute(*, path='.', remote='origin', set_upstream=True, force=False, **kwargs)
Push the current branch to a remote.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Project root directory. |
'.'
|
remote
|
str
|
Remote name (default |
'origin'
|
set_upstream
|
bool
|
Auto-set upstream for new branches. |
True
|
force
|
bool
|
If True, force-push. |
False
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with branch, remote, and push status. |