How to git stash pop specific stash in 1.8.3?

2019-03-07 13:38发布

I just upgraded git. I'm on git version 1.8.3.

This morning I tried to unstash a change 1 deep in the stack.

I ran git stash pop stash@{1} and got this error.

fatal: ambiguous argument 'stash@1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

I've tried about 20+ variations on this as well as using apply instead of pop with no success. What's changed? Anyone else encounter this?

7条回答
Deceive 欺骗
2楼-- · 2019-03-07 14:03

You need to escape the braces:

git stash pop stash@\{1\}
查看更多
登录 后发表回答