如何访问使用 `git stash save --patch name` 保存的 stash(git) ?
我能够隐藏
补丁的更改 通过执行 git stash save --patch name ,当我执行 git stash list 时会列出它。
现在我如何使用名称来引用这个藏品?
I am able to stash
a patch of changes
by doing git stash save --patch name
, which gets listed when I do git stash list
.
Now how do I refer to this stash using the name?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
存储是使用常见的 reflog 语法命名的,例如
stash@{0}
等,这就是您在git stash list
中看到的内容。不存在将名称传递给存储的概念。您可能正在谈论存储消息(您也可以在 git stash list 中看到),并且您不能使用其消息来引用存储(当然)Stashes are named using the usual reflog syntax like
stash@{0}
etc. which is what you see ingit stash list
. There is no concept of passing name to a stash. You are probably talking about the stash message ( which, you also see ingit stash list
)and you cannot refer a stash using its message ( of course )