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

Re: Resetting working files

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 31, 2009, 21:30 UTC
Message-ID
<81b0412b0905311430v7874013cm6db84bd12d749134@mail.gmail.com>
In-Reply-To
<20090531173932.GA13856@vidovic>
2009/5/31 Nicolas Sebrecht <nicolas.s.dev@gmx.fr>:
Show 5 quoted lines
> The 31/05/09, Aaron Gray wrote:
>>
>> I think index is HEAD or a revision hash. Am I correct ?
>
> HEAD is a reference to a branch name:
Not really. Try "git checkout HEAD^" and run cat .git/HEAD

It is more a pointer to a commit. The pointers to a commit in git are allowed to be indirect by referencing other pointers.

Previous: Aaron Gray
Message 8 of 8 in “Resetting working files”
  1. Aaron GrayMay 31, 2009
  2. Dirk SüsserottMay 31, 2009
  3. Aaron GrayMay 31, 2009
  4. Peter BaumannMay 31, 2009
  5. Aaron GrayMay 31, 2009
  6. Nicolas SebrechtMay 31, 2009
  7. Aaron GrayMay 31, 2009
  8. Alex RiesenMay 31, 2009

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.