how to revert a git stash

C++
git stash apply
$ git stash show -p stash@{0} | git apply -R

Source

Also in C++: