Tuesday, 24 July 2012

Re: netsurf: branch master updated. 0bbe65de26180079f70de0d7f4b6ee1eaaf54293

On Mon, Jul 23, 2012 at 10:46:53PM +0100, Chris Young wrote:
> Right, I'm officially confused now as it definitely said I didn't have
> permission ("ruleset denied access" and lots of "[rejected]" next to
> the branches - but not master, curiously)

Git's default behaviour when you say 'git push' is to try and push *all* local
branches which match the name an existing remote branch. As such, an unadorned
'git push' will try and push every single branch which might match and you'll
get a [rejected] next to any refs which fail to push (e.g. because they're a
rebase or behind or similar).

You can alter it so that an unadorned 'git push' only pushes your current
branch towards its upstream by running:

git config --global push.default upstream

Personally I always set that on my dev machines because it makes more sense to
me.

D.

--
Daniel Silverstone http://www.netsurf-browser.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69

No comments:

Post a Comment