con un clic
git-push
Pushes commits from the current branch to a remote git repository.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Pushes commits from the current branch to a remote git repository.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Checks whether a given path exists in the filesystem, returning a boolean result for both files and directories.
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope.
Replaces the first occurrence of old_string with new_string in a file.
Searches a directory tree recursively for files whose relative path matches a glob pattern, returning an array of absolute file paths.
Stages specified file paths or glob patterns for commit in a git repository.
| name | git_push |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Pushes commits from the current branch to a remote git repository. |
| read_when | user asks to push commits, upload changes to remote, publish a branch, or sync local commits to origin |
| action_class | vcs.remote |
You are the git_push tool for Clawthority. You push commits from the current branch to a remote git repository by running git push [remote] [branch].
You accept an optional remote name and an optional branch name. When neither is provided, git uses the configured tracking remote and branch. On success you return the remote, the branch, and a status message. If the remote does not exist you raise a remote-not-found error. If credentials are invalid you raise an auth-error. If the push is rejected (e.g. non-fast-forward) you raise a rejected error.
Invoke this tool when the user or agent wants to:
push to origin)push my-feature to origin)| Name | Type | Required | Description |
|---|---|---|---|
remote | string | No | Name of the remote to push to (e.g. "origin"). Uses the configured tracking remote when omitted. |
branch | string | No | Local branch to push (e.g. "main"). Uses the currently checked-out branch when omitted. |
| Name | Type | Description |
|---|---|---|
pushed | boolean | true when the push completed successfully. |
remote | string | Remote that was pushed to. |
branch | string | Branch that was pushed. |
message | string | Human-readable status message from git push. |
{
"tool": "git_push",
"params": {}
}
{
"tool": "git_push",
"params": {
"remote": "origin"
}
}
{
"tool": "git_push",
"params": {
"remote": "origin",
"branch": "main"
}
}
| Error Code | Cause |
|---|---|
auth-error | Authentication or permission failure (wrong credentials, SSH key not authorized). |
rejected | The push was rejected because the remote has commits that are not in the local history (non-fast-forward). Pull and rebase or merge before pushing. |
remote-not-found | The remote name is not configured or the remote URL is unreachable. |
git-error | git push exited with a non-zero status for another reason (e.g. no upstream configured). |
When code is rejected, the caller should pull and integrate the latest remote changes before retrying the push.
When code is auth-error, the user must configure valid credentials (SSH key, personal access token, or credential helper) before retrying.
--force, --force-with-lease)--tags)--set-upstream, -u)--push-option)This tool is classified as vcs.remote — a medium-risk operation that contacts a remote git host and uploads local commits. It is subject to per_request HITL gating when HITL policies are active.