Is git stash branch-specific or for the whole repository?

后端 未结 4 1931
小鲜肉
小鲜肉 2020-12-12 18:32

I went into a branch and did some work. I wanted to go into another branch but didn\'t want to commit so I did git stash. Then I did git checkout

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 19:16

    No and No. git stash is per-repository.

    Here is a nice page on how to use it.

提交回复
热议问题