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.
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 |