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:
gx shelf push [message]
Stash your current changes with a descriptive message:
gx shelf list
Non-interactive list of all stashes with their details:
gx shelf clear
Drop all stashes at once:
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