This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git tip


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]