Re: master^ is not a local branch -- huh?!?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 29, 2010, 21:54 UTC
- Message-ID
- <7vmxzwh906.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <fabb9a1e1001291328s1df443d6jdf0501cda17072de@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 7 quoted lines
> On Fri, Jan 29, 2010 at 22:24, Ron Garret <ron1@flownet.com> wrote: >> Yes, I read that. But what I'm trying to do is not just *look* at the >> history, I want to restore my working tree to a previous version. The >> "Exploring History" section of the docs doesn't say how to do that. > > Do you want to restore your working tree only, or also throw away the > history? If the former, you could look at 'git revert',...
I think he wanted to check paths out of a commit and the set of paths happened to be "everything".
IOW, "checkout $commit ."