Skip to content

一个 git stash 实战的小技巧 #8

@godkun

Description

@godkun

介绍

git stash 后,就把 .git 根目录下的 index 文件中的部分内容放在缓存里。

技巧

有一个场景:

连续两次 git stash

然后 git stash pop 后,这时不能再次使用 git stash pop

解决

必须先把第一次的 stashcommit 后,才能进行第二次 git stash pop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions