Skip to content

Instantly share code, notes, and snippets.

@daniDLL
Created October 30, 2023 08:46
Show Gist options
  • Save daniDLL/03a5ee00397e3d3b905a35ddd20ebdfb to your computer and use it in GitHub Desktop.
Save daniDLL/03a5ee00397e3d3b905a35ddd20ebdfb to your computer and use it in GitHub Desktop.
Restore deleted stash
git fsck --unreachable | grep commit | cut -d" " -f3 | xargs git log --merges --no-walk --grep=<commit message>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment