git_reset
Reset Git repository HEAD to a specified commit using soft, mixed, or hard modes to undo changes and restore previous states in development workflows.
Instructions
Reset current HEAD to specified state
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory | |
| mode | No | Reset mode | mixed |
| commit | No | Commit to reset to | HEAD |
| files | No | Specific file(s) to reset |
Input Schema (JSON Schema)
{
"properties": {
"commit": {
"default": "HEAD",
"description": "Commit to reset to",
"type": "string"
},
"cwd": {
"description": "Repository directory",
"type": "string"
},
"files": {
"description": "Specific file(s) to reset",
"type": "string"
},
"mode": {
"default": "mixed",
"description": "Reset mode",
"enum": [
"soft",
"mixed",
"hard"
],
"type": "string"
}
},
"type": "object"
}