当前位置:   article > 正文

git --- stash用法_git stash怎么用户

git stash怎么用户

1 git stash命令介绍

// 保存当前分支的修改,回到上个版本的状态
git stash 	

// 保存当前分支的修改,回到上个版本的状态,msg是保存当前修改的说明			
git stash save "msg"	

// 用来展示所有保存的列表
git stash list	

// 用来展示某一保存记录所修改的操作		
git stash show			

// 恢复之前保存的修改操作并删除该保存记录
// 默认是恢复最近一次的(git stash pop@{
   0})
// 如果想指定恢复,可以在pop 加上 stash@{
   number}
// number表示stash list的顺序,例如 git stash pop@{
   1
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/975775
推荐阅读
相关标签
  

闽ICP备14008679号