如何访问使用 `git stash save --patch name` 保存的 stash(git) ?

发布于 2024-12-18 15:36:56 字数 117 浏览 3 评论 0原文

我能够隐藏补丁的更改 通过执行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九歌凝 2024-12-25 15:36:56

存储是使用常见的 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 in git stash list. There is no concept of passing name to a stash. You are probably talking about the stash message ( which, you also see in git stash list )and you cannot refer a stash using its message ( of course )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文