When I run git stash list
, I get the following:
stash@{0}: WIP on mybranch: 123456f Generic comment here.
stash@{1}: WIP on mybranch: 234567g Generic comment here.
...
stash@{n}: WIP on mybranch: 345678h Generic comment here.
This is expected behavior. What mystifies me is git show
's behavior.
When I run git stash show -p stash@{1}
in my repo, I get the following error:
fatal: ambiguous argument 'stash@{1}': unknown revision or path not in working tree.
How can this be? I'm running git stash show -p stash@{1}
in a git repo.