4

I stashed my changes because I had to pull. However, I forgot to pop my changes before I turned off my laptop. I tried the command git stash list to see if my stashed changes is there but I can't find it. How can I retrieve it? Please help. Thanks in advance.

Roman
  • 19,581
  • 6
  • 68
  • 84
NinjaBoy
  • 3,715
  • 18
  • 54
  • 69
  • 6
    Does this help: http://stackoverflow.com/questions/89332/recover-dropped-stash-in-git – Dmitri Oct 10 '12 at 00:53
  • 2
    Shouldn't matter if you turned off your laptop or not. Stashed changes should still be in the repository until you remove them (either with `git pop` or `git stash clear`). – Roman Oct 10 '12 at 03:11
  • 1
    Be sure you are in your git repo ;) As a stash is a commit, it is stored by Git even if you switched your computer off. – greg Oct 10 '12 at 09:32
  • @Dmitri: it is not a dropped stash. – Sergey K. Sep 03 '13 at 13:52

1 Answers1

3

To apply the recently pushed stash use:

git stash apply

Sergey K.
  • 24,894
  • 13
  • 106
  • 174