From: Junio C Hamano Date: Wed, 25 Feb 2009 09:51:29 GMT Subject: Re: git push Message-ID: <7vzlga6dzy.fsf@gitster.siamese.dyndns.org> In-Reply-To: <76718490902250134q580caaffuf5f13d87e3d0974c@mail.gmail.com> Jay Soffian writes: > On Wed, Feb 25, 2009 at 2:44 AM, Junio C Hamano wrote: > >> Oh, and the value 'current' can be spelled as 'HEAD' already there. > > John - in case you missed this, the behavior you desire is already available: > > (next)$ git config remote.origin.push HEAD > (next)$ git remote show origin > [...] > Local ref configured for 'git push': > HEAD pushes to next (fast forwardable) > (next)$ git checkout master > > (master)$ git remote show origin > [...] > Local ref configured for 'git push': > HEAD pushes to master (fast forwardable) Thanks.