Re: master^ is not a local branch -- huh?!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article 
<fabb9a1e1001291328s1df443d6jdf0501cda17072de@xxxxxxxxxxxxxx>,
 Sverre Rabbelier <srabbelier@xxxxxxxxx> wrote:

> Heya,
> 
> On Fri, Jan 29, 2010 at 22:24, Ron Garret <ron1@xxxxxxxxxxx> 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,

Yes.

> or also throw away the history?

No.

> If the former, you could look at 'git revert'

If that's the right answer then the docs needs serious revision.  The 
docs for "git revert" say that what it does is:

"Given one existing commit, revert the change the patch introduces, and 
record a new commit that records it."

which does not sound at all like what I'm trying to do.

All I want to do is copy an old commit to my working tree, nothing else.  
I don't want to move my head pointer.  I don't want to muck with my 
index.  I don't want to commit any changes or undo any history.  It's a 
very simple thing.  It ought to be simple to do, but it doesn't seem to 
be.

rg

--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]