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

Re: Mysterious junk in file.... "not commited yet"

From
Howard Miller <howard@e-learndesign.co.uk>
Date
Apr 5, 2010, 19:29 UTC
Message-ID
<x2n26ae428a1004051229hf238c770tc4875df83e96a639@mail.gmail.com>
In-Reply-To
<vpq8w91r9bo.fsf@bauges.imag.fr>
> Plain "git checkout" will read from the index, while "git checkout
> HEAD" takes the last commited version.

Cool.... that's the bit I hadn't appreciated. I was (falsely) under the impression that 'git checkout' grabbed the last committed version. Suitably educated... thanks!

Previous: Matthieu Moy
Message 6 of 6 in “Mysterious junk in file.... "not commited yet"”
  1. Howard MillerApr 5, 2010
  2. Avery PennarunApr 5, 2010
  3. Howard MillerApr 5, 2010
  4. Avery PennarunApr 5, 2010
  5. Matthieu MoyApr 5, 2010
  6. Howard MillerApr 5, 2010

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.