How to recover stashed uncommitted changes

前端 未结 6 752
一生所求
一生所求 2020-11-28 17:09

I had some uncommitted changes in my development branch and I stashed them using git stash, but there were some changes which were very important among those st

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 17:32

    git stash pop
    

    will get everything back in place

    as suggested in the comments, you can use git stash branch newbranch to apply the stash to a new branch, which is the same as running:

    git checkout -b newbranch
    git stash pop
    

提交回复
热议问题