undo statsh 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