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/ \_/