Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: Please discuss: what "git push" should do when you do not say what to push?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:19

If the conclusion of the discussion is that we will change the default,
the transition to the new default will go like this:

 1. An announcement message to let the user communities know about the
    future change will be distributed in a way similar to the previous
    request-for-discussion message was distributed.

 2. The first version of Git that is released after such an announcement
    will start issuing a warning when you type "git push" to send the
    matching branches to the default location unless you have configured
    push.default variable.  The users who want to keep the current default
    can do

	$ git config push.default matching

    and the users who want to use different settings can do one of:

	$ git config push.default current
	$ git config push.default upstream
	$ git config push.default nothing

    to silence this warning. The warning will be issued unless you do so,
    to help those who missed the message #1.

 3. We wait for a few release cycles.

 4. The default changes.  If you do not configure push.default variable,
    it no longer defaults to matching, but does something else (the choice
    among the three other alternatives will be decided in the discussion).
    The warning message will be reworded---instead of saying "will stop
    being the 'matching' in the future", it will say "has changed to X".

 5. We wait for a few release cycles.

 6. The warning is removed.

A typical release cycle lasts for 8-10 weeks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help