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

Re: .git and retrieving full source tree for own project(s)

From
Aarmencho@gmail.com <armencho@gmail.com>
Date
Sep 4, 2009, 20:18 UTC
Message-ID
<981b72360909041318m686beea8x11f3076c74c2ee15@mail.gmail.com>
In-Reply-To
<7viqfyfpdc.fsf@alter.siamese.dyndns.org>
On Fri, Sep 4, 2009 at 22:04, Junio C Hamano<gitster@pobox.com> wrote:
Show 20 quoted lines
> In this case, your "delete everything" is your local change, and git did
> its best to preserve it while switching branches.
>
> If you want to "copy this and that files and directories out of the
> commit at the tip of the current branch and deposit them in my work tree
> and index", you would say
>
>    $ git checkout HEAD this that
>
> so a request for checking everything out would be a natural extension of
> the above that would be:
>
>    $ git checkout HEAD .
>
> If you want to "copy this and that files and directories out of the index
> and deposit them in my work tree", you would say
>
>    $ git checkout this that
>
>

This makes sense now. I have tested this and it all functions as you said. Thanks for your help!

Previous: Junio C Hamano
Message 3 of 3 in “.git and retrieving full source tree for own project(s)”
  1. armencho@gmail.comSep 4, 2009
  2. Junio C HamanoSep 4, 2009
  3. armencho@gmail.comSep 4, 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.