A TUI tool for managing git stashes, the part of git that git stash list makes miserable.
go install github.com/vlensys/stashpilot@latestIf stashpilot isn't found after installing, add Go's bin directory to your PATH:
# fish
fish_add_path $HOME/go/bin
# bash
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc && source ~/.bashrc
# zsh
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.zshrc && source ~/.zshrcOr clone and build:
git clone https://github.com/vlensys/stashpilot
cd stashpilot
go build -o stashpilot .Run it from inside any git repo:
stashpilot| Key | Action |
|---|---|
↑ / k |
Navigate up |
↓ / j |
Navigate down |
a |
Apply stash (keeps it in the list) |
p |
Pop stash (apply + remove) |
d |
Drop stash (delete without applying) |
n |
Create a new stash from working changes |
ctrl+u |
Scroll diff up |
ctrl+d |
Scroll diff down |
r |
Refresh stash list |
q |
Quit |
Destructive actions (pop, drop) require confirmation with y or Enter.