If I create a commit with git stash create whatever I get a hash of the commit back, but I can’t find that commit hash with git reflog.
git log stash doesn’t work either, not does git stash list.
How can I list the commits I create using git stash create?
If you use the script in this answer, you can then do
git stash list.Then you may actually want to get that commit back at some point. To do this, you can list the stashes using
git stash listwhich gives you something like this (remember, these can be dumb commit messages):Then you can restore, say,
blah2by running:or as @Eliot points out, you can use this to not destroy your stash: