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

Wrong configuration variable mentioned in git-push documentation (examples section)

From
ASAdam Sharafeddine <adam.shrfdn@gmail.com>
Date
Feb 22, 2021, 05:07 UTC
Message-ID
<CAAxrY9yjTKV8-K0AmO4fBmtDrSB4KkN_xKOMmtSb-dvixJNaEQ@mail.gmail.com>
Hello

In the file Documentation/git-push.txt under the EXAMPLES section, specifically under `git push origin`::, remote.origin.merge configuration variable is said to configure the upstream branch for the origin remote, when in fact it should be branch.<name>.merge, where <name> is the name of the local branch at which HEAD is currently pointing to.

Here's en excerpt:
Show 5 quoted lines
> `git push origin`::
>         Without additional configuration, pushes the current branch to
>         the configured upstream (`remote.origin.merge` configuration
>         variable) if it has the same name as the current branch, and
>         errors out without pushing otherwise.

I'm still learning Git so I thought I would share this with you (I got confused reading the examples). Maybe I'll learn something new or/and correct the aforementioned error.

Regards

-- Adam

Next: Philippe Blain
Message 1 of 2 in “Wrong configuration variable mentioned in git-push documentation (examples section)”
  1. Adam SharafeddineFeb 22, 2021
  2. Philippe BlainFeb 25, 2021

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.