Created
November 12, 2014 16:36
-
-
Save hskrasek/d2f7e844de6384109114 to your computer and use it in GitHub Desktop.
Stash Recovery
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
#Thanks StackOverflow: http://stackoverflow.com/a/91795 | |
git log --graph --oneline --decorate $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' ) | |
git stash apply $stash_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment