git: stash管理

一,列出stash

$ git stash list
stash@{0}: WIP on devel: a6aff4e 删除vendor下.gitignore
stash@{1}: WIP on devel: 2a32258 清空git缓存

二,删除一个stash

$ git stash drop stash@{0}
丢弃了 stash@{0}(e2f4bcb8402e6a19f104cc8446714d599768bb58)
$ git stash list
stash@{0}: WIP on devel: 2a32258 清空git缓存

三,删除所有stash

$ git stash clear
$ git stash list

 

posted @ 2025-08-23 09:29  刘宏缔的架构森林  阅读(6)  评论(0)    收藏  举报