git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git push origin error (1.6.3 new default functionality)

From
Junio C Hamano <gitster@pobox.com>
Date
May 13, 2009, 18:37 UTC
Message-ID
<7vprec4znj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4A09594F.4040603@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 7 quoted lines
> Seriously, we had that discussion when the feature (change of default
> behaviour) and warning were introduced, so it's too late for a change.
> But it's never too late to do
>
> git config --global push.default matching
>
> and be done with it.
Thanks for saying this concisely, and saving me from repeating this.
> The weird thing is that the default is "matching" already. But it makes
> a difference whether you have set the variable to its default value
> explicitly or not. No man page says so (neither git-push nor
> git-config), and I can't think of other variables with such a behaviour.

It is not weird at all. Although I am still not convinced (and I suspect some old timers are not either), the default could change in the future and by setting it to 'matching', you will protect yourself from such a change. Consider it a vaccination ;-)

Previous: Michael J GruberNext: Caleb Cushing
Message 10 of 14 in “git push origin error (1.6.3 new default functionality)”
  1. Caleb CushingMay 12, 2009
  2. Michael J GruberMay 12, 2009
  3. Caleb CushingMay 13, 2009
  4. Jeff KingMay 13, 2009
  5. Johannes SixtMay 13, 2009
  6. Jeff KingMay 13, 2009
  7. Michael J GruberMay 13, 2009
  8. Jeff KingMay 14, 2009
  9. Michael J GruberMay 14, 2009
  10. Junio C HamanoMay 13, 2009
  11. Caleb CushingMay 14, 2009
  12. Junio C HamanoMay 14, 2009
  13. Junio C HamanoMay 14, 2009
  14. Finn Arne GangstadMay 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.