Re: git -- how to revert build to as-originally-cloned?
- From
- Philippe Vaucher <philippe.vaucher@gmail.com>
- Date
- May 20, 2011, 14:42 UTC
- Message-ID
- <BANLkTi=nFf_6oULwqtC=--JBS9py3fvjwA@mail.gmail.com>
- 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