Re: git fetch: where are the downloaded objects stored?
From: Paolo Ciarrocchi <hidden>
Date: 2016-06-15 22:44:19
On Mon, Mar 3, 2008 at 2:14 PM, Matthieu Moy [off-list ref] wrote:
"Paolo Ciarrocchi" [off-list ref] 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.
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/