git_commit
Create a commit with a message or amend the last commit, optionally skipping pre-commit hooks. Use after staging changes to record them, or to fix the previous commit.
Instructions
Create a commit with the given message, or amend the last one. Use this when staged changes are ready to record, to fix the previous commit's message or contents (amend=True), or to skip pre-commit hooks (no_verify=True). Does NOT stage files — run git_add first; check git_status if nothing appears staged. Best for: recording staged changes after git_add. Returns: confirmation with the new commit hash, or 'No changes to commit' with a staging hint when untracked files are present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amend | No | Amend the last commit | |
| message | Yes | Commit message | |
| no_verify | No | Skip pre-commit and commit-msg hooks | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |