I'm aware that git
stashs are local only and the message will not be exposed to any remote party and the message is thus much less relevant than commit messages.
I don't seem to find a way to get the message which has been explicitly passed to git stash save
or any other way to retrieve it since git stash pop
is not recorded in git reflog
.
I often write information into the stash message why I stashed and how far the stashed implementation is, so they're pretty valuable to me.
I'm aware the using branching has a lot of advantages over using git stash
with almost no downsides. I'm in the transition of getting the habit of no longer using git stash
in favor of branches, however I already lost messages and would like to clarify this once.
My git stash pop
output looks like
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: test
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (958d4b921e7f3e8faa9fd2ecb12af13250e1f739)