git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Aug 6, 2007, 14:26 UTC
Message-ID
<Pine.LNX.4.64.0708061520490.29052@reaper.quantumfyre.co.uk>
In-Reply-To
<46B72A8E.3040602@gmx.de>
On Mon, 6 Aug 2007, Toralf Förster wrote:
Show 13 quoted lines
> Hello,
>
> shouldn't " at the tip of one of your branches" better written as " at the 
> top of one of your branches".
>
> BTW one question: I run a simple test unit (only build tests) against the 
> latest git tree, which is updated with "git pull" once a day.
>
> If I want to make some tests with a previous kernel version - say v2.6.20 and 
> switch then back to HEAD to continue with my common test suite, would the 
> following be ok : ?
>
> $> git checkout v2.6.20
This will change HEAD to be a detached checkout of v2.6.20
> $> <do something useful with it>
> $> git reset
This will not change HEAD back.
something like this perhaps?

$> MY_HEAD=$(git symbolic-ref HEAD) $> git checkout v2.6.20 $> <...> $> git reset --hard $MY_HEAD

no doubt there is a more cunning method ...
-- 
Julian

  ---
<SpanKY> hmm, blade iii comes out the 8th
<SpanKY> we could catch a flick and have anal sex in the back
<jforman> holy jesus, /me cancels his plans
Previous: Toralf Förster
Message 2 of 2 in “typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html”
  1. Toralf FörsterAug 6, 2007
  2. Julian PhillipsAug 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.