Thread (19 messages) flat view 19 messages, 12 authors, 2016-06-15

Re: About detached heads

From: Wincent Colaiuta <hidden>
Date: 2016-06-15 22:44:23

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

?

        git checkout 3...

gets me the commit on a detached head, but I don't know how to put  
this back
as the HEAD.

I'm on git 1.5.0.5
How about?

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

Wincent
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help