Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: git push · Junio C Hamano <hidden> · 2016-06-15

Re: git push

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:17

Jay Soffian [off-list ref] writes:
On Wed, Feb 25, 2009 at 2:44 AM, Junio C Hamano [off-list ref] wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help