Created
March 22, 2011 11:50
-
-
Save KlausTrainer/881107 to your computer and use it in GitHub Desktop.
recover lost git commits
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
for i in `git fsck --full | grep "dangling commit" | head | grep -o -E "[0-9a-f]+$"`; do git show $i | vim -; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment