From: "Josh Boyer" <jwboyer@gmail.com>
To: git@vger.kernel.org
Subject: Default refspec for branches
Date: Wed, 19 Apr 2006 07:58:58 -0500 [thread overview]
Message-ID: <625fc13d0604190558tf0e8b69n5f5a830a3131f1d4@mail.gmail.com> (raw)
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
next reply other threads:[~2006-04-19 12:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-19 12:58 Josh Boyer [this message]
2006-04-19 17:45 ` Default refspec for branches Junio C Hamano
2006-04-19 17:52 ` Josh Boyer
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=625fc13d0604190558tf0e8b69n5f5a830a3131f1d4@mail.gmail.com \
--to=jwboyer@gmail.com \
--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.
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).