From: Roland McGrath <roland@redhat.com>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: archer ml <archer@sourceware.org>
Subject: Re: git tip
Date: Thu, 05 Mar 2009 22:23:00 -0000 [thread overview]
Message-ID: <20090305222231.C83A0FC3BF@magilla.sf.frob.com> (raw)
In-Reply-To: Thiago Jung Bauermann's message of Thursday, 5 March 2009 19:10:31 -0300 <1236291031.28372.44.camel@localhost.localdomain>
> I don't know yet if you can add multiple push entries in .git/config to
> create multiple branch mappings, but perhaps you can.
You can, and they can have *s in them. Also a leading + implies "-f"
behavior, which is usually what you want for branches that only you push
to (so you can correct snafus without polluting history). See 'man git-push'
for all the details. e.g., this:
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
is what I use in some checkouts where the only local branches I have are
ones that I publish in the given remote repo. (You can also use just
'git push repo', e.g. 'git push origin' when you have a checkout tracking
multiple published repos that you might push to. i.e., select the repo and
let it default the refspec from .git/config.)
Thanks,
Roland
next prev parent reply other threads:[~2009-03-05 22:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 22:10 Thiago Jung Bauermann
2009-03-05 22:23 ` Roland McGrath [this message]
2009-03-06 22:51 ` Doug Evans
2009-03-08 4:37 ` Thiago Jung Bauermann
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=20090305222231.C83A0FC3BF@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=archer@sourceware.org \
--cc=bauerman@br.ibm.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).