Skip to content

Instantly share code, notes, and snippets.

@induratized
Created July 3, 2025 06:31
Show Gist options
  • Save induratized/f011b55d18cfffde45460fed18702e0a to your computer and use it in GitHub Desktop.
Save induratized/f011b55d18cfffde45460fed18702e0a to your computer and use it in GitHub Desktop.
how to recover popped/dropped git stash item

🚨 If You Already Popped or Dropped the Stash

If you've already run git stash pop or deleted the stash, you can try to recover it from reflog:

git reflog

Look for a line like:

stash@{0}: WIP on ...

or:

HEAD@{X}: stash: created ...

Then you can checkout or diff the stash commit:

git checkout <stash-commit-hash>

Or extract just the staged changes from it.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment