Re: git push
Jay Soffian <jaysoffian@gmail.com> writes:
Show 17 quoted lines
> On Wed, Feb 25, 2009 at 2:44 AM, Junio C Hamano <gitster@pobox.com> 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)