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