git stash一个中途被打断保存和恢复现场的好方法

6119阅读 1评论2010-10-19 gliethttp
分类:LINUX

来自git stash --help

$ git stash
$ edit emergency fix
$ git commit -a -m "Fix in a hurry"
$ git stash apply

$ git pull
  file foobar not up to date, cannot merge.
$ git stash
$ git pull
$ git stash apply

git stash 直接保存,默认将以hash id做提示信息
git stash save 11111111 以11111111为提示名字保存
git stash apply stash@{1} 可以恢复git stash list嵌套堆栈中的任意一次stash保存
git stash show
git stash list
git stash clear 清空所有stash
上一篇:关于如何消除might be clobbered by 'longjmp' or 'vfork'
下一篇:业内人士称我国提前步入加息周期

文章评论