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

Re: [PATCH] git-checkout.txt: improve detached HEAD documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2011, 05:56 UTC
Message-ID
<7vd3mkfw8w.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1298179310-46207-1-git-send-email-jaysoffian@gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 9 quoted lines
> +It is sometimes useful to be able to checkout a commit that is not at
> +the tip of any named branch, or even to create a new commit that is not
> +referenced by a named branch. Let's look at what happens when we
> +checkout commit 'b' (here we show three ways this may be done):
>  
> +------------
> +$ git checkout v2.0  # or
> +$ git checkout b     # or
> +$ git checkout master^^

I'd drop the second one, as "b" is not something the end user would type from the command line (you could say "b's commit ID" but the string 'b' is not it, unless it is a tag or something, in which case the first one that uses 'v2.0' already illustrates it), and adjust "three" accordingly.

Other than that, I think this version is a vast improvement over what we have.

Thanks.
Previous: Jay SoffianNext: Jay Soffian
Message 8 of 9 in “git-checkout.txt: improve detached HEAD documentation”
  1. git-checkout.txt: improve detached HEAD documentationJay Soffian, Feb 17, 2011
  2. Jay SoffianFeb 17, 2011
  3. Nicolas PitreFeb 17, 2011
  4. Junio C HamanoFeb 17, 2011
  5. Nicolas PitreFeb 18, 2011
  6. Junio C HamanoFeb 18, 2011
  7. git-checkout.txt: improve detached HEAD documentationJay Soffian, Feb 20, 2011
  8. Junio C HamanoFeb 22, 2011
  9. Jay SoffianFeb 22, 2011

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.