To return the hidden code without removing it from the list, you can use
git stash apply
to restore the last hidden code, but I believe that you just want to see diff, you can use
git diff stash@ {0}
which is a simple command to break the stored code in the first position .
Using git stash list
, you can take a look at the position
that the saved code that you want to see exists, and then run git diff stash@ {position}
with the correct position
.
EDIT :
As indicated in the comments, there is another command that can help, if you want to see the whole file in the saved code, you can create a branch with the saved code and view it using the following command
git stash branch <branchname> [<stash>]
source share