I frequently use git stash
and git stash pop
to save and restore changes in my working tree. Yesterday I had some changes in my working tree that I
I couldn't get any of the answers to work on Windows in a simple command window (Windows 7 in my case). awk
, grep
and Select-string
weren't recognized as commands. So I tried a different approach:
git fsck --unreachable | findstr "commit"
start cmd /k git show
will look something like this:
start cmd /k git show 8506d235f935b92df65d58e7d75e9441220537a4
start cmd /k git show 44078733e1b36962571019126243782421fcd8ae
start cmd /k git show ec09069ec893db4ec1901f94eefc8dc606b1dbf1
start cmd /k git show d00aab9198e8b81d052d90720165e48b287c302e
git stash apply (your hash)
may not be the best solution, but worked for me