Skip to content

Instantly share code, notes, and snippets.

@elshanx
Created October 11, 2023 08:41
Show Gist options
  • Save elshanx/7ec5961feccca17dce81f388227a1706 to your computer and use it in GitHub Desktop.
Save elshanx/7ec5961feccca17dce81f388227a1706 to your computer and use it in GitHub Desktop.
recover dropped stashes
git fsck --unreachable | grep commit | cut -d" " -f3 | xargs git log --merges --no-walk --grep=WIP
// WIP is for unnamed stashes, if you named your stash then you can find it with grep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment