Undo a git stash

前端 未结 3 1743

I just did a stash in a project that I haven\'t commit. Is there a way to go back to the state before I stashed? How could I do this? I\'ve closed the terminal and my laptop

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 07:31

    This will also restore the staging directory:

    git stash apply --index
    

提交回复
热议问题