From: Jeff King Date: Fri, 13 Mar 2009 16:49:41 GMT Subject: Re: Not pushing all branches? Message-ID: <20090313164941.GA16504@sigill.intra.peff.net> In-Reply-To: On Fri, Mar 13, 2009 at 08:48:55AM +0100, Peter Krefting wrote: > Doing "git push remote" pushes all my local branches by default. Is there > a way to set it to *not* do that, and (for this particular remote > repository) just push the current branch? Or failing that, not allow me to > run "git push" without specifying a branch? > > The git-config manual page leads me to believe that I should recofigure > "remote..push", but it points me to the "refspec" spec on git-push, > which is a tad cryptic. There seem to be a lot of responses in this thread, but nobody has suggested: git config remote.$remote.push HEAD It isn't mentioned in the git-push manpage; maybe a documentation patch to give an example using HEAD would make sense? -Peff