Skip to content

Instantly share code, notes, and snippets.

@jced-artem
Last active November 5, 2019 10:37
Show Gist options
  • Save jced-artem/a677c158b77fba4d2be8fbf0cbb37c96 to your computer and use it in GitHub Desktop.
Save jced-artem/a677c158b77fba4d2be8fbf0cbb37c96 to your computer and use it in GitHub Desktop.
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk
git update-ref refs/stash 4b3fc45c94caadcc87d783064624585c194f4be8 -m "My recovered stash"
(https://dev.to/meduzen/recover-a-lost-git-stash-in-two-steps-569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment