Created
March 27, 2019 22:21
-
-
Save singhai0/96eb45f04ea03c91d1a2025837dae273 to your computer and use it in GitHub Desktop.
See list of git stashed changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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