git_stash
Manage Git repository stashes by saving, applying, popping, listing, or dropping changes. Specify the repository path, action, and optional message or index for precise control.
Instructions
Create or apply a stash.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | No | Stash action (save, pop, apply, list, drop) | save |
index | No | Stash index (for pop, apply, drop actions) | |
message | No | Stash message (for save action) | |
repo_path | Yes | The path to the local Git repository |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"default": "save",
"description": "Stash action (save, pop, apply, list, drop)",
"enum": [
"save",
"pop",
"apply",
"list",
"drop"
],
"type": "string"
},
"index": {
"default": 0,
"description": "Stash index (for pop, apply, drop actions)",
"type": "integer"
},
"message": {
"default": "",
"description": "Stash message (for save action)",
"type": "string"
},
"repo_path": {
"description": "The path to the local Git repository",
"type": "string"
}
},
"required": [
"repo_path"
],
"type": "object"
}