git_stash
Save uncommitted changes temporarily to switch branches or tasks, then restore them later when needed. Manage stashed changes with push, pop, list, apply, drop, and clear operations.
Instructions
Stash changes in working directory
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory | |
| action | No | Stash action | push |
| message | No | Stash message (for push) | |
| index | No | Stash index (for pop/apply/drop) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"default": "push",
"description": "Stash action",
"enum": [
"push",
"pop",
"list",
"apply",
"drop",
"clear"
],
"type": "string"
},
"cwd": {
"description": "Repository directory",
"type": "string"
},
"index": {
"description": "Stash index (for pop/apply/drop)",
"type": "number"
},
"message": {
"description": "Stash message (for push)",
"type": "string"
}
},
"type": "object"
}