Re: About detached heads
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Mar 14, 2008, 10:15 UTC
- Message-ID
- <9A4AC53D-BCFA-4BEE-BD53-AA7F29781454@wincent.com>
- In-Reply-To
- <93c3eada0803140246k53408c74m21f9dc277857202d@mail.gmail.com>
El 14/3/2008, a las 10:46, Geoff Russell escribió:
Show 17 quoted lines
> 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