From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: git@vger.kernel.org
Subject: Per-remote tracking branch
Date: Tue, 15 Sep 2009 17:29:58 +0200 [thread overview]
Message-ID: <vpq4or48bux.fsf@bauges.imag.fr> (raw)
Hi,
Is there a way, with Git, to specify a tracking branch on a per-remote
basis?
At the moment, I can configure a tracking branch to let me just type
$ git pull
when I want to say
$ git pull origin master
Now, assume I have another remote "foo", I'd like to be able to just
say
$ git pull foo
and put something in my .git/config so that Git knows I mean
$ git pull foo master
Is there a simple way to do that?
(for the motivation: I mostly use Git with a 1-branch-per-repo setup,
so in 99% of my use-cases, when I have to specify a branch, it's
master).
Thanks,
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next reply other threads:[~2009-09-15 15:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 15:29 Matthieu Moy [this message]
2009-09-24 6:29 ` Per-remote tracking branch Jeff King
2009-09-24 11:10 ` Matthieu Moy
2009-09-24 11:25 ` Björn Steinbrink
2009-09-24 11:35 ` Björn Steinbrink
2009-09-24 16:00 ` Matthieu Moy
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpq4or48bux.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).