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.
$ gx shelf clearThis will permanently delete ALL 3 stashes: stash@{0} 5 minutes ago gx-shelf: feature/auth 2025-04-15 10:30 stash@{1} 2 hours ago working on dashboard stash@{2} 3 days ago WIP on main: initial setupWARN This cannot be undone.Drop all stashes? [y/N] yOK All stashes cleared.
Flag
Description
--dry-run
Show what would be dropped
gx shelf clear permanently deletes all stashes. This cannot be undone. Use --dry-run to preview first.
Edge cases
If the working tree is clean, gx shelf push prints > 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