如何在1.8.3中存储流行特定存储? [英] How to git stash pop specific stash in 1.8.3?

查看:208
本文介绍了如何在1.8.3中存储流行特定存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级了git。我在git版本1.8.3上。

今天早上,我试图在堆栈中清除1深处的变化。



我运行了 git stash pop stash @ {1} 并且出现了这个错误。

 致命:模棱两可的参数'stash @ 1':未知的版本或路径不在工作树中。 
使用' - '分隔修订版本的路径,如下所示:
'git< command> [< revision> ...] - [< file>]'

我已经尝试了大约20多个变体,并且使用 apply 而不是 pop ,但没有成功。什么改变了?任何人都会遇到这种情况?

正如前面指出的那样,花括号可能需要转义或引用,具体取决于您的操作系统,shell,等等。



请参阅存储器@ {1}不明确?了解可能出错的一些详细提示,以及如何在各种shell和平台上解决它。

  git stash list 
git stash apply stash @ {n}

git存储应用版本


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}

git stash apply version

这篇关于如何在1.8.3中存储流行特定存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆