Re: So git pull is shorthand for what exactly? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: So git pull is shorthand for what exactly?
Date
Msg-id 4CA6283B.1010107@dunslane.net
Whole thread Raw
In response to Re: So git pull is shorthand for what exactly?  (Andres Freund <andres@anarazel.de>)
Responses Re: So git pull is shorthand for what exactly?
List pgsql-hackers

On 10/01/2010 01:23 PM, Andres Freund wrote:
>
> If you want that as a default behaviour:
> "For example, to default to pushing only the current branch to origin use git
> config remote.origin.push HEAD. Any valid<refspec>  (like the ones in the
> examples below) can be configured as the default for git push origin."

It's just occurred to me that this might be a slightly dangerous 
setting. If HEAD happens to be your private topic branch because you 
forgot to switch back to the main branch, it will cheerfully push your 
no longer private branch. If you have separate git dirs for each live 
branch, it might be better to set the default push refspec to that 
branch explicitly. Of course, if you're using the multiple workdir 
pattern, that won't work because then they all share a common .git/config.

But maybe I'm just being a bit paranoid.

cheers

andrew


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: patch: tsearch - some memory diet
Next
From: Pavel Stehule
Date:
Subject: Re: patch: tsearch - some memory diet