当前位置:   article > 正文

git stash 常用命令_gti stash save

gti stash save

stash 暂存本地代码

1、暂存本地代码

git stash save '描述信息'
  • 1

2、查看本地有多少缓存代码

//这里索引越小代码越新
git stash list
  • 1
  • 2

在这里插入图片描述

3、合并本地缓存代码

git stash apply  //默认合并最新的缓存代码 
git stash apply 1 //合并索引为1 的缓存代码
  • 1
  • 2

4、删除某一个缓存代码

gti stash drop 索引
git stash drop 2 //删除索引为2 的缓存代码
  • 1
  • 2

在这里插入图片描述

5、清除本地所有缓存代码

git stash clear
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/590607
推荐阅读
相关标签
  

闽ICP备14008679号