Git Stash 常用命令

git stash

  • 保存当前的代码和工作进度

git stash list

  • 查看保存的进度列表

git stash pop
恢复最新的进度到工作区

git stash pop [stash_id]
恢复指定的存储到工作区

git stash drop [stash_id]
删除指定的存储

git stash clear
删除所有存储进度

posted @ 2022-08-12 17:06  kanelli  阅读(55)  评论(0)    收藏  举报