From: Philippe Vaucher Date: Fri, 20 May 2011 14:42:34 GMT Subject: Re: git -- how to revert build to as-originally-cloned? Message-ID: In-Reply-To: <4DD44DCD.7010508@hotmail.com> > am stuck trying to revert a private kernel build back to the state in which I originally cloned it, > (after probably doing the wrong thing  -  as below).     Hoping someone can advise. I just wanted to add that usually when I "mess up" and want to revert to a previous state, I usually simply `git reflog`, find where I was before messing up, then `git reset --hard` to the desired SHA1. Hope it helps, Philippe