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

Re: "git pull REMOTE" question

From
Miles Bader <miles.bader@necel.com>
Date
Aug 22, 2007, 04:44 UTC
Message-ID
<buo8x84kwkq.fsf@dhapc248.dev.necel.com>
In-Reply-To
<7vy7g4jids.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
>> Is there a way to set things up so that "git pull REMOTE"
>> automatically merges fetched branches when doing a non-default pull?
>
> The branch to be merged currently is determined per branch.
> You can just say "git pull usb master".

Right, but what I'm asking is whether there is (or should be) a way to automatically supply the "master", so I can just type "git pull usb" and have it do the right thing -- as there obviously is for the "origin" remote for this branch.

This apparent association of each local branch with a single remote seems slightly odd to me -- isn't it quite common for people to pull from various different remotes into the same local branch (e.g. for someone merging from the repositories of various regular contributors)?

Thanks,
-Miles
-- 
Do not taunt Happy Fun Ball.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “"git pull REMOTE" question”
  1. Miles BaderAug 22, 2007
  2. Junio C HamanoAug 22, 2007
  3. Miles BaderAug 22, 2007
  4. Junio C HamanoAug 22, 2007
  5. Jon LoeligerAug 22, 2007
  6. Junio C HamanoAug 22, 2007

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.