Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以stash通过做来修改补丁,git stash save --patch name 当我做的时候会列出来git stash list。
stash
git stash save --patch name
git stash list
现在我如何使用名称来引用这个存储?
Stashes 是使用通常的 reflog 语法命名的,例如stash@{0}etc. 这就是您在git stash list. 没有将名称传递给存储的概念。您可能正在谈论 stash 消息(您也可以在 中看到git stash list)并且您不能使用它的消息来引用 stash(当然)
stash@{0}