undo git stash drop code example
Example 1: git stash drop
# if you don't need a particular stash, use git stash drop <stash_id>
git stash drop stash@{0}
# to show all stash, use this:
git stash list
Example 2: git stash drop all
git stash clear
Example 3: get previous git stash
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk