Get git stash parent commit -
is there way retrieve commit stash created?
when creating stash default command git stash
original commit saved in stash message, looks like:
stash@{0}: wip on master: abc123 message of commit.
however, if git stash save 'a stash message'
used, commit not appear in stash list:
stash@{1}: on master: own message
so how retrieved?
i'd say
git log -1 commitish^
e.g.
git log -1 stash@{0}^
otherwise,
git log -g --no-walk --parents refs/stash
Comments
Post a Comment