From: Junio C Hamano <gitster@pobox.com>
To: Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
Cc: git@vger.kernel.org
Subject: Re: Multiple remote.<...>.fetch and .push patterns
Date: Tue, 01 Jul 2008 02:27:58 -0700 [thread overview]
Message-ID: <7vprpynech.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <g4croa$3eu$1@ger.gmane.org> (Michael J. Gruber's message of "Tue, 01 Jul 2008 11:00:54 +0200")
Michael J Gruber <michaeljgruber+gmane@fastmail.fm> writes:
> 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).
next prev parent reply other threads:[~2008-07-01 9:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-30 18:58 Multiple remote.<...>.fetch and .push patterns Adr3nal D0S
2008-06-30 19:29 ` Jon Loeliger
2008-06-30 19:52 ` Adr3nal D0S
2008-07-01 9:00 ` Michael J Gruber
2008-07-01 9:27 ` Junio C Hamano [this message]
2008-07-01 9:59 ` Michael J Gruber
2008-07-01 13:04 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vprpynech.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=michaeljgruber+gmane@fastmail.fm \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.