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

Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Dec 31, 2008, 15:14 UTC
Message-ID
<200812310914.25779.bss@iguanasuicide.net>
In-Reply-To
<7v7i5hymp7.fsf@gitster.siamese.dyndns.org>

On Tuesday 30 December 2008, Junio C Hamano <gitster@pobox.com> wrote about 'Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]':

Show 10 quoted lines
>"Boyd Stephen Smith Jr." <bss@iguanasuicide.net> writes:
>> "git checkout <branch> <paths>" is similar to "hg revert -r <branch>
>> <paths>",
>
>No it is not.
>
>The form of the command is makes this request:
>
>    Please look into that named <tree-ish>, and check out the named
>    <paths> out of it to my work tree.

That seems similar to "hg revert": Using the -r option, revert the given files or directories to their contents as of a specific revision.

>    Because the reason I want them in 
>    my work tree is so that I can include them as part of the next commit
>    I am preparing to create in the index, please update these paths in
> my index while at it.

This part is odd to me, but does make some sense. I can only think of a few reasons to retrieve a file from a different tree-ish without immediately turning around and doing "git add <bar>".

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
Previous: Junio C Hamano
Message 6 of 6 in “RE: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]”
  1. Conor RaffertyDec 31, 2008
  2. Boyd Stephen Smith Jr.Dec 31, 2008
  3. Junio C HamanoDec 31, 2008
  4. Daniel BarkalowDec 31, 2008
  5. Junio C HamanoDec 31, 2008
  6. Boyd Stephen Smith Jr.Dec 31, 2008

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.