git_revert
Revert a Git commit by creating a new commit that undoes the changes. Apply changes without committing when needed to manage repository history effectively.
Instructions
Revert a commit by creating a new commit
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | Yes | Commit hash to revert | |
| cwd | No | Repository directory | |
| noCommit | No | Apply changes without committing |
Input Schema (JSON Schema)
{
"properties": {
"commit": {
"description": "Commit hash to revert",
"type": "string"
},
"cwd": {
"description": "Repository directory",
"type": "string"
},
"noCommit": {
"default": false,
"description": "Apply changes without committing",
"type": "boolean"
}
},
"required": [
"commit"
],
"type": "object"
}