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

Re: Per-remote tracking branch

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 24, 2009, 16:00 UTC
Message-ID
<vpqskec5o54.fsf@bauges.imag.fr>
In-Reply-To
<20090924113537.GA14113@atjola.homenet>
Björn Steinbrink <B.Steinbrink@gmx.de> writes:
Show 13 quoted lines
>> Setup "foo" so that it fetches "master" only, i.e. have
>> remote.foo.fetch = refs/heads/master:refs/remotes/foo/master
>> 
>> You get that setup with: git remote add -t master foo git://...
>> 
>> Then there's only one possible choice for "git pull", and it will take
>> that.
>
> Ah, crap, spoke too soon. That works only when branch.<name>.merge is
> not set. Though that's not that much of a problem. When your "primary"
> remote (the one set for branch.<name>.remote) also fetches just a single
> branch, "git pull" will still work, even if branch.<name>.merge is not
> set.
Yes, that's it. Thanks for your anwser, it works.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Björn Steinbrink
Message 6 of 6 in “Per-remote tracking branch”
  1. Matthieu MoySep 15, 2009
  2. Jeff KingSep 24, 2009
  3. Matthieu MoySep 24, 2009
  4. Björn SteinbrinkSep 24, 2009
  5. Björn SteinbrinkSep 24, 2009
  6. Matthieu MoySep 24, 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.