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

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

From
Matthieu Moy <git@matthieu-moy.fr>
Date
Nov 13, 2018, 21:37 UTC
Message-ID
<1615698920.2718456.1542145071499.JavaMail.zimbra@matthieu-moy.fr>
In-Reply-To
<20181113203909.30740-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason" <avarab@gmail.com> wrote:
> Let's use "git push <remote> HEAD" which always means push the current
> branch name to that remote, instead of "git push <remote>
> <current-branch-name>" which will do that under "simple", but is not
> guaranteed to do under "upstream".
Probably a good idea indeed.
One potential objection though: I think many people know
  git push origin master

(not that they necessarily understand it, but I've seen many people talking or asking questions about what "origin master" is)

This "git push origin HEAD" is IMHO less common. It may confuse users. Or users may learn it and be happy thanks to your message. I don't know.

-- 
Matthieu Moy
https://matthieu-moy.fr/
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 2 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.