如何在git中按名稱命名和檢索存儲? - How to name and retrieve a stash by name in git?

問題:

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 stashnamegit 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
相關文章
相關標籤/搜索