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

Re: How to git checkout a orgin(unstage) version file in another directoy?

From
Chunlin Zhang <zhangchunlin@gmail.com>
Date
Feb 17, 2011, 13:30 UTC
Message-ID
<loom.20110217T142701-926@post.gmane.org>
In-Reply-To
<4D5D1603.6040208@drmicha.warpmail.net>
Michael J Gruber <git <at> drmicha.warpmail.net> writes:
> So, you don't really want to "checkout" the file. You only want its
> contents without updating the index. (My brain is apparently too
> git-rotted already to even think of the possibility that you didn't mean
> "our checkout" by "checkout").
Yes,I am a git newbie,a little bit misunderstanding about the git-checkout.
> 
> Jonathan gave you the perfect solution for what you want.
Anyway,your answer make me more familiar about git cli usage.
> 
> Michael
> 
Previous: Michael J GruberNext: Junio C Hamano
Message 6 of 11 in “How to git checkout a orgin(unstage) version file in another directoy?”
  1. Chunlin ZhangFeb 17, 2011
  2. Michael J GruberFeb 17, 2011
  3. Chunlin ZhangFeb 17, 2011
  4. Chunlin ZhangFeb 17, 2011
  5. Michael J GruberFeb 17, 2011
  6. Chunlin ZhangFeb 17, 2011
  7. Junio C HamanoFeb 17, 2011
  8. Michael J GruberFeb 18, 2011
  9. Jonathan NiederFeb 17, 2011
  10. Chunlin ZhangFeb 17, 2011
  11. Andreas SchwabFeb 17, 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.