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

Re: understanding index

From
NSNicolas Sebrecht <nicolas.s-dev@laposte.net>
Date
Jan 31, 2009, 22:07 UTC
Message-ID
<20090131220712.GE29748@ultras>
In-Reply-To
<adf1fd3d0901311257j1501d222nc24514b013bd13f3@mail.gmail.com>
On Sat, Jan 31, 2009 at 09:57:29PM +0100, Santi Béjar wrote:
Show 7 quoted lines
> By default git reset only acts on the head of the branch and the index, so with:
> 
> git reset HEAD foo
> 
> what you are saying is, use the HEAD as the head of the branch (don't
> change my branch), but put in the index the state of foo in HEAD, so
> in brief reset the index state of foo.
Thank you all for the explanations.
-- 
Nicolas Sebrecht
Previous: Santi BéjarNext: Björn Steinbrink
Message 6 of 7 in “understanding index”
  1. Nicolas SebrechtJan 31, 2009
  2. Santi BéjarJan 31, 2009
  3. Alex RiesenJan 31, 2009
  4. Nicolas SebrechtJan 31, 2009
  5. Santi BéjarJan 31, 2009
  6. Nicolas SebrechtJan 31, 2009
  7. Björn SteinbrinkJan 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.