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

Re: [PATCH] push: change needlessly ambiguous example in error

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 14, 2018, 08:16 UTC
Message-ID
<xmqqsh04m5v3.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<850526490.3010891.1542177378884.JavaMail.zimbra@matthieu-moy.fr>
Matthieu Moy <git@matthieu-moy.fr> writes:
Show 20 quoted lines
> "Junio C Hamano" <gitster@pobox.com> wrote:
>
>> > Where 'topic' is a tracking branch of 'origin/master' (I use
>> > push.default=upstream). I only recently discovered that I could push to
>> > 'HEAD" to do the same thing. So one ulterior motive is to make that more
>> > prominent.
> [...]
>> Do we consider the current behaviour useful? Is it documented
>
> Yes, since 1750783 (Documentation: more git push examples, 2009-01-26).
>
> It may be an accident that the doc says "to the same name on the
> remote." since it predates the introduction of push.default, but it
> does say so and it's the actual behavior.
>
>> already and widely known?
>
> https://stackoverflow.com/questions/14031970/git-push-current-branch-shortcut
>
> 458 votes for the answer suggesting it.

OK, that probably is good enough reason to keep the current behaviour and convince ourselves that there is nothing that needs to be done further on this topic.

Thanks.
Previous: Matthieu Moy
Message 6 of 6 in “push: change needlessly ambiguous example in error”
  1. push: change needlessly ambiguous example in errorÆvar Arnfjörð Bjarmason, Nov 13, 2018
  2. Matthieu MoyNov 13, 2018
  3. Ævar Arnfjörð BjarmasonNov 13, 2018
  4. Junio C HamanoNov 14, 2018
  5. Matthieu MoyNov 14, 2018
  6. Junio C HamanoNov 14, 2018

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.