如何在1.8.3中存储流行特定存储? [英] How to git stash pop specific stash in 1.8.3?
问题描述
我刚刚升级了git。我在git版本1.8.3上。
今天早上,我试图在堆栈中清除1深处的变化。
我运行了 git stash pop stash @ {1}
并且出现了这个错误。
致命:模棱两可的参数'stash @ 1':未知的版本或路径不在工作树中。
使用' - '分隔修订版本的路径,如下所示:
'git< command> [< revision> ...] - [< file>]'
我已经尝试了大约20多个变体,并且使用 apply
而不是 pop
,但没有成功。什么改变了?任何人都会遇到这种情况?
请参阅存储器@ {1}不明确?了解可能出错的一些详细提示,以及如何在各种shell和平台上解决它。
git stash list
git stash apply stash @ {n}
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?
As pointed out previously, the curly braces may require escaping or quoting depending on your OS, shell, etc.
See "stash@{1} is ambiguous?" for some detailed hints of what may be going wrong, and how to work around it in various shells and platforms.
git stash list
git stash apply stash@{n}
这篇关于如何在1.8.3中存储流行特定存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!