Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15317269
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类: LINUX

2010-10-19 17:53:25

来自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
阅读(5885) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-10-20 10:50:17

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com