Reword Commit
git_reword_commitRewrites the message of any Git commit using non-interactive rebase or amend for HEAD, requiring a clean working directory.
Instructions
Updates the message of a specific commit in history. If it is the latest commit (HEAD), uses git commit --amend. Otherwise performs a fully non-interactive rebase sequence (no editor prompts). Requires a clean working directory. Rewrites history for the target commit and everything after it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit_hash | Yes | The hash (full or abbreviated, min 4 hex chars) of the commit to reword. | |
| new_message | Yes | The replacement commit message. |