问题:
I was always under the impression that you could give a stash a name by doing git stash save stashname
, which you could later on apply by doing git stash apply stashname
. 我一直认为你能够经过git stash save stashname
来git stash save stashname
一个名字,你能够稍后经过git stash apply stashname
。 But it seems that in this case all that happens is that stashname
will be used as the stash description. 但彷佛在这种状况下,全部发生的事情都是将stashname
用做存储描述。 git
Is there no way to actually name a stash? 有没有办法真正命名藏匿? If not, what would you recommend to achieve equivalent functionality? 若是没有,你会建议什么实现相同的功能? Essentially I have a small stash which I would periodically like to apply, but don't want to always have to hunt in git stash list
what its actual stash number is. 基本上我有一个小的藏匿,我会按期申请,但不想老是在git stash list
寻找它的实际藏匿号码。 app
解决方案:
参考一: https://stackoom.com/question/lHeC/如何在git中按名称命名和检索存储参考二: https://oldbug.net/q/lHeC/How-to-name-and-retrieve-a-stash-by-name-in-git