How to delete a stash created with git stash create?

前端 未结 9 1000
失恋的感觉
失恋的感觉 2020-12-04 04:28

Git stash seems to do a lot of what I want, except that it is a little hard to script, as the if you have no changes, then git stash; git stash pop will do some

9条回答
  •  暖寄归人
    2020-12-04 05:01

    Git stash clear will clear complete stash,

    cmd: git stash clear

    If you want to delete a particular stash with a stash index, you can use the drop.

    cmd: git stash drop 4

    (4 is stash id or stash index)

提交回复
热议问题