Skip to content

Instantly share code, notes, and snippets.

@hskrasek
Created November 12, 2014 16:36
Show Gist options
  • Save hskrasek/d2f7e844de6384109114 to your computer and use it in GitHub Desktop.
Save hskrasek/d2f7e844de6384109114 to your computer and use it in GitHub Desktop.
Stash Recovery
#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