Re: About detached heads

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

 



El 14/3/2008, a las 11:48, Matthieu Moy escribió:

Wincent Colaiuta <win@xxxxxxxxxxx> writes:

El 14/3/2008, a las 10:46, Geoff Russell escribió:

This should be simple! I have a series of commits:

         1---2---3---4---5

I want to go back to 3 but not branch, so I want

         1---2---3---4---5---3

How about?

 git cherry-pick the-sha-1-id-of-commit-3

Correct me if I'm wrong, but I believe this will try to re-apply
commit 3 (probably a no-op since commit 3 is already in the history,
perhaps tons of conflicts if 4 and 5 touched the same pieces of code).

I thought the OP was saying that 4 and 5 somehow undid the effect of 3 and he wanted to reapply it. But he probably meant what you said, he just wants to reset back to 3.

Wincent



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

  Powered by Linux