git stash

作者: 想溜了的蜗牛 | 来源:发表于2021-04-30 10:27 被阅读0次
$ git stash list 
stash@{0}: WIP on develop: fe35b49 工作A
stash@{1}: WIP on stat: 84e1de3 update date time format
stash@{2}: WIP on dev: 89c433 ID replace name

# 下边命令会先应用 stash@{1}
$ git stash apply 1

# 删除某个 stash,不加编号,默认为删除第0条,否则为指定序号
$ git stash drop
$ git stash drop 1

# 弹出最近一
$ git stash pop

当应用 apply 非最近一条,操作会有些繁琐。 因为 apply 后如果这个 stash 不需要再用了,还需要再 drop 一下。

相关文章

  • Git stash 技巧

    Git stash常用技巧 git stash save git stash list git stash app...

  • stash 操作暂存区

    涉及命令:git stash、stash list、git stash apply、git stash drop ...

  • 【Git】stash

    stash git stash // 加入缓存区git stash save "注释"git stash list...

  • Git Stash

    save stash$ git stash list stash$ git stash list apply st...

  • stash

    git stash ; //暂存 git stash list ;//暂存列表 git stash apply s...

  • 储藏

    查看现有stash : git stash list 移除stash : git...

  • git 缓存的常用方法

    git 缓存的常用方法 git stash2.git stash pop3.git stash list4.git...

  • git手记

    暂存 git stash save {暂存说明}git stash list 查看所有暂存git stash ap...

  • git stash 多单

    git stash 一单 git stash pop 就可以拿出这一单 git stash 多单 git stas...

  • git stash

    git stash 或者git stash save (两种命令相同,save可以添加注释) git stash ...

网友评论

      本文标题:git stash

      本文链接:https://www.haomeiwen.com/subject/gcywrltx.html