git_commit
Stage and commit code changes with a custom message, optionally targeting specific files. Automatically protects branches by requiring a feature branch and matches the repo's commit history style.
Instructions
Stage and commit changes. By default every modified and untracked file is staged; pass paths to commit a subset. Refuses to commit on a protected branch — create a feature branch first. Write the message in the style of the repository's recent commits (check git_log).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Only stage and commit these paths. Default: all changes. | |
| message | Yes | Commit message. First line is the subject; add a body after a blank line. | |
| workspace | No | Workspace alias. Defaults to the active workspace. |