git_revert
Revert a Git branch to a specific commit or state in your local repository. Optionally stage changes without committing. Simplify branch rollback with this tool.
Instructions
Revert the current branch to a commit or state.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commit | No | Commit hash or reference to revert | |
no_commit | No | Whether to stage changes without committing | |
repo_path | Yes | The path to the local Git repository |
Input Schema (JSON Schema)
{
"properties": {
"commit": {
"description": "Commit hash or reference to revert",
"type": "string"
},
"no_commit": {
"default": false,
"description": "Whether to stage changes without committing",
"type": "boolean"
},
"repo_path": {
"description": "The path to the local Git repository",
"type": "string"
}
},
"required": [
"repo_path"
],
"type": "object"
}