commit_and_push_changes
Stage, commit, and push changes to a Git repository in one step. Specify repo path and commit message; optionally select files, branch, or create a new branch. Automatically sets upstream tracking.
Instructions
Use this when you want to stage, commit, and push in one step (most common push workflow). Requires 'repo_path' and 'commit_message'. Optional: 'files' (specific files to stage; empty stages all), 'branch', 'create_branch'. Automatically sets upstream tracking. See also: git_push, create_pull_request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_path": "<repo_path>",
"commit_message": "<commit_message>"
},
"name": "commit_and_push_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Repository path relative to workspace | |
| commit_message | Yes | Commit message | |
| files | No | Specific files to stage (empty for all) | |
| branch | No | Target branch (current if empty) | |
| create_branch | No | Create branch if it does not exist |