how to undo a git stash code example
Example 1: how to undo a git stash
git stash apply
Example 2: how to revert a git stash
$ git stash show -p stash@{0} | git apply -R
Example 3: how to stash and undo stash
git stash pop
git stash apply
$ git stash show -p stash@{0} | git apply -R
git stash pop