This is the mail archive of the
mailing list for the Archer project.
Re: git tip
- From: Roland McGrath <roland at redhat dot com>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: archer ml <archer at sourceware dot org>
- Date: Thu, 5 Mar 2009 14:22:31 -0800 (PST)
- Subject: Re: git tip
- References: <firstname.lastname@example.org>
> 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.)
- git tip
- From: Thiago Jung Bauermann