git-stash
Temporarily store uncommitted changes to switch branches or tasks, then restore them later using stash, pop, apply, list, show, drop, or clear operations.
Instructions
Git stash tool for temporary changes management. Supports stash, pop, apply, list, show, drop, clear operations for storing and retrieving work-in-progress changes.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The stash operation to perform | |
includeUntracked | No | Include untracked files when stashing | |
index | No | Try to reinstate index changes when applying/popping | |
keepIndex | No | Keep index unchanged when stashing | |
message | No | Stash message (for stash operation) | |
oneline | No | Show stash list in oneline format | |
patch | No | Interactive patch mode for selective stashing | |
projectPath | Yes | Absolute path to the project directory | |
quiet | No | Suppress output during stash operations | |
stashRef | No | Stash reference (e.g., "stash@{0}", "0") for pop, apply, show, drop operations |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The stash operation to perform",
"enum": [
"stash",
"pop",
"apply",
"list",
"show",
"drop",
"clear"
],
"type": "string"
},
"includeUntracked": {
"description": "Include untracked files when stashing",
"type": "boolean"
},
"index": {
"description": "Try to reinstate index changes when applying/popping",
"type": "boolean"
},
"keepIndex": {
"description": "Keep index unchanged when stashing",
"type": "boolean"
},
"message": {
"description": "Stash message (for stash operation)",
"type": "string"
},
"oneline": {
"description": "Show stash list in oneline format",
"type": "boolean"
},
"patch": {
"description": "Interactive patch mode for selective stashing",
"type": "boolean"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"quiet": {
"description": "Suppress output during stash operations",
"type": "boolean"
},
"stashRef": {
"description": "Stash reference (e.g., \"stash@{0}\", \"0\") for pop, apply, show, drop operations",
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}