Skip to content

Instantly share code, notes, and snippets.

@singhai0 singhai0/stashbox.sh
Created Mar 27, 2019

Embed
What would you like to do?
See list of git stashed changes
function stashbox() {
local branch_name=$(git stash list | fzf --ansi -m --preview "echo {} | cut -d':' -f1 | xargs -I % sh -c 'git stash show --color=always % | less -R'")
if [[ $branch_name ]]; then
echo $branch_name | cut -d':' -f1| xargs git stash pop
fi
}
Courtesy: https://github.com/Brantron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.