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

Re: Multiple remote.<...>.fetch and .push patterns

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 1, 2008, 09:27 UTC
Message-ID
<7vprpynech.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<g4croa$3eu$1@ger.gmane.org>
Michael J Gruber <michaeljgruber+gmane@fastmail.fm> writes:
Show 9 quoted lines
> The files under remotes are the old way of configuring remotes (see
> git help push). The new are config lines in the remotes section, as
> written by "git remote". I don't think "git remote" can write the
> lines you want, so I'd suggest:
>
> git config remote.ko.url kernel.org:/pub/scm/git/git.git
> git config remote.ko.fetch refs/heads/master:refs/tags/ko-master
> git config --add remote.ko.fetch refs/heads/next:refs/tags/ko-next
> git config --add remote.ko.fetch refs/heads/maint:refs/tags/ko-maint
I'd actually suggest:
	$ edit .git/config
and create this section:
        [remote "ko"]
                url = master.kernel.org:/pub/scm/git/git.git/
                fetch = +refs/heads/*:refs/remotes/ko/*
                push = heads/master
                push = heads/next
                push = +heads/pu
                push = heads/maint
(I used to say ko-master but these days I say ko/master).
Previous: Michael J GruberNext: Michael J Gruber
Message 5 of 7 in “Multiple remote.<...>.fetch and .push patterns”
  1. Adr3nal D0SJun 30, 2008
  2. Jon LoeligerJun 30, 2008
  3. Adr3nal D0SJun 30, 2008
  4. Michael J GruberJul 1, 2008
  5. Junio C HamanoJul 1, 2008
  6. Michael J GruberJul 1, 2008
  7. Jakub NarebskiJul 1, 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.