git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Per-remote tracking branch
@ 2009-09-15 15:29 Matthieu Moy
  2009-09-24  6:29 ` Jeff King
  2009-09-24 11:25 ` Björn Steinbrink
  0 siblings, 2 replies; 6+ messages in thread
From: Matthieu Moy @ 2009-09-15 15:29 UTC (permalink / raw)
  To: git

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-24 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 15:29 Per-remote tracking branch Matthieu Moy
2009-09-24  6:29 ` 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

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 NNTP newsgroup(s).