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

Re: git fetch: where are the downloaded objects stored?

From
PCPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date
Mar 3, 2008, 14:33 UTC
Message-ID
<4d8e3fd30803030633nf6266d5qab0df4ba4c539e0b@mail.gmail.com>
In-Reply-To
<vpqskz82bm3.fsf@bauges.imag.fr>
On Mon, Mar 3, 2008 at 2:14 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 7 quoted lines
> "Paolo Ciarrocchi" <paolo.ciarrocchi@gmail.com> writes:
>
>  > What is still not clear to me is where git is storing
>  > the objects downloaded during a git fetch operation.
>
>  git fetch downloads the objects to the object database, i.e.
>  .git/objects/, usualy as a pack.
Ok, thanks.
Show 6 quoted lines
>  Now, just "having" the objects locally doesn't change much, an object
>  starts being really interesting if you have a reference (typically, a
>  branch) pointing to it. "git fetch" will update the remote references
>  (for example, origin/master), but won't touch the working tree, and
>  won't do any merge, fast-forward or not, to a local branch. So, most
>  likely, "git fetch" will be followed by either a merge or a rebase.
Yes, your explanation perfectly match my understanding.

I was, and I'm still, confused by the following sentence in the git merge documentation: "A merge is always between the current HEAD and one or more remote branch heads"

If I think to the following scenario:
 git fetch
 git diff (to look at what I downloaded via git fetch)
 gir merge
I don't see a merge between the current HEAD and a _remote_ branch.
Ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/
Previous: Matthieu MoyNext: Matthieu Moy
Message 3 of 12 in “git fetch: where are the downloaded objects stored?”
  1. Paolo CiarrocchiMar 3, 2008
  2. Matthieu MoyMar 3, 2008
  3. Paolo CiarrocchiMar 3, 2008
  4. Matthieu MoyMar 3, 2008
  5. Paolo CiarrocchiMar 3, 2008
  6. Nicolas PitreMar 3, 2008
  7. Paolo CiarrocchiMar 3, 2008
  8. Sergei OrganovMar 3, 2008
  9. Nicolas PitreMar 3, 2008
  10. Nicolas PitreMar 3, 2008
  11. Paolo CiarrocchiMar 3, 2008
  12. Jakub NarebskiMar 3, 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.