Documentation Index
Fetch the complete documentation index at: https://gx.mubbie.dev/llms.txt
Use this file to discover all available pages before exploring further.
gx shelf is a friendlier interface for git stash. It lets you push stashes with descriptive names, browse them interactively with file stats, and apply/pop/drop with a simple number+action interface.
Usage
Subcommands
gx shelf (interactive)
Opens an interactive stash browser showing each entry with its index, age, message, originating branch, and file change stats:
| Input | Action |
|---|---|
0a or 0 | Apply stash 0 (keep the stash) |
0p | Pop stash 0 (apply and drop) |
0d | Drop stash 0 (discard) |
| text | Filter stashes by message or branch name |
q or Enter | Cancel |
gx shelf push [message]
Stash your current changes with a descriptive message:
| Flag | Short | Description |
|---|---|---|
--include-untracked | -u | Also stash untracked files |
gx shelf list
Non-interactive list of all stashes with their details:
gx shelf clear
Drop all stashes at once:
| Flag | Description |
|---|---|
--dry-run | Show what would be dropped |
Edge cases
Edge cases
- If the working tree is clean,
gx shelf pushprints> Nothing to stash. Working tree is clean. - With
-u, gx also checks for untracked files before saying “nothing to stash” - The interactive picker supports text filtering by message content or branch name (case-insensitive)
- Drop requires a separate confirmation prompt (
Drop stash@{n}? [y/N]) - File stats (insertions/deletions) are parsed from
git stash show --shortstat