On Tue, Dec 16, 2008 at 12:07 PM, Alexander Gladysh <agladysh@xxxxxxxxx> wrote: > Hi, list! > > I've stashed some valuable changes and then I accidentally did git > stash clear. (Yes, today is not my day). > > Is it possible to restore stashed changes? I ran into this exact problem on Friday. Some helpful person on IRC suggested using git fsck | grep commit | cut -d' ' -f3 | while read hash; do git rev-parse --verify --quiet $hash^2 && echo $hash; done | xargs git show Which will show a huge list of lost changes. Once you find the change you're interested in, you can cherry-pick its sha1. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html