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

Re: How make "git checkout <commit> <file>" *not* alter index?

From
Cchris@seberino.org <chris@seberino.org>
Date
Jan 7, 2009, 06:55 UTC
Message-ID
<20090107065538.GA10617@seberino.org>
In-Reply-To
<7vk599ne6a.fsf@gitster.siamese.dyndns.org>
On Mon, Jan 05, 2009 at 10:26:05PM -0800, Junio C Hamano wrote:
>     $ git checkout HEAD~43 Makefile
>     $ git reset Makefile
Thank you very much.  git reset looks that just what I need.
cs
Previous: Junio C Hamano
Message 4 of 4 in “How make "git checkout <commit> <file>" *not* alter index?”
  1. chris@seberino.orgJan 6, 2009
  2. Jike SongJan 6, 2009
  3. Junio C HamanoJan 6, 2009
  4. chris@seberino.orgJan 7, 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.