首页 > 其他 > 详细

git stash 操作简记

时间:2015-10-26 12:19:48      阅读:263      评论:0      收藏:0      [点我收藏+]
  1. git stash 保存当前的修改

  2. git stash pop  弹出stash中最顶端的即stash<0>的内容

  3. git stash list  查看stash中所有的改动

  4. git stash apply @stash<id> / git stash pop @stash<id> 弹出stash<id>的修改

  5. git stash clear  清除所有的stash

  6. git stash drop @stash<id>  移除stash<id> 


注:git stash pop @stash<id> 命令会在执行后将对应的stash id 从stash list里删除

      git stash apply @stash<id>命令则会继续保存stash id

git stash 操作简记

原文:http://my.oschina.net/shieh/blog/522012

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!