how to undo changes from 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
git stash apply
$ git stash show -p stash@{0} | git apply -R