我刚刚升级了Git,现在使用的是1.8.3版本。
今天早上我尝试从堆栈中取出一次改动。
我输入了git stash pop stash@{1}
,然后收到了以下错误提示:
fatal: ambiguous argument 'stash@1': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'
我已经尝试了20多种不同的方法,包括将pop
替换为apply
,但都没有成功。这是什么问题?还有其他人遇到过吗?
git stash pop 1
命令:参见下面我的回答。 - VonC