0
EG。我有很多的儲物箱,但是我想保留一個名爲「我特別的儲藏箱」。Git如何刪除不包含特定名稱的所有窗口
類似git stash clear !"my special stash"
會很好,謝謝你的幫助。
EG。我有很多的儲物箱,但是我想保留一個名爲「我特別的儲藏箱」。Git如何刪除不包含特定名稱的所有窗口
類似git stash clear !"my special stash"
會很好,謝謝你的幫助。
找出你想要保存的你最喜歡的儲藏參考,例如[email protected]{3}
。
#create a tag for the favorite stash ref
git tag mystash [email protected]{3}
#clear all stash refs
git stash clear
#reproduce the favorite stash
git reset mystash
git stash
#clear the tag
git tag -d mystash
這是個好主意嗎? 'git reset'會在當前分支上重擊。你可以稍後再用另一個'git reset'修復它,也許。一個更好的主意可能是使用'git stash store'從臨時標籤重新創建存儲。 – torek
@torek介意添加命令?不知道他們將如何使用商店不同,謝謝你的朋友。 – Andrew
@torek謝謝。我不知道'git stash restore'。 – ElpieKay