Created
May 15, 2019 21:32
-
-
Save tibovanheule/e2f0a5d96960d4b2cfd9cb33d749d6b9 to your computer and use it in GitHub Desktop.
Recover lost git stashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk | |
git update-ref refs/stash 4b3fc45c94caadcc87d783064624585c194f4be8 -m "My recover stash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment