git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Default refspec for branches
@ 2006-04-19 12:58 Josh Boyer
  2006-04-19 17:45 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2006-04-19 12:58 UTC (permalink / raw)
  To: git

Is there a way to change the default refspec that git pull uses on a
per branch basis?  I know that you can create .git/remotes/<foo> and
do 'git pull <foo>' to pull from whatever is listed in there, but that
isn't quite what I'm looking for.

What I'd like to be able to do is create a branch and have 'git pull'
simply pull from the remote tree.  I tried listing multiple refspecs
in .git/remotes/origin, but git didn't seem to like that.

For example, I clone Linus' tree.  Then I create a branch called mtd. 
When I'm working in that branch, I want 'git pull' to pull from
git://git.infradead.org/mtd-2.6.git.

Any ideas?

josh

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

end of thread, other threads:[~2006-04-19 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 12:58 Default refspec for branches Josh Boyer
2006-04-19 17:45 ` Junio C Hamano
2006-04-19 17:52   ` Josh Boyer

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).