{"thread":{"id":"55182","subject":"Wrong configuration variable mentioned in git-push documentation (examples section)","startedAt":"2021-02-22T05:08:19Z","lastAt":"2021-02-25T13:58:40Z","messageCount":2,"participants":["Adam Sharafeddine","Philippe Blain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"417464","messageId":"CAAxrY9yjTKV8-K0AmO4fBmtDrSB4KkN_xKOMmtSb-dvixJNaEQ@mail.gmail.com","threadId":"55182","inReplyTo":null,"subject":"Wrong configuration variable mentioned in git-push documentation (examples section)","fromName":"Adam Sharafeddine","fromEmail":"adam.shrfdn@gmail.com","sentAt":"2021-02-22T05:07:00Z","receivedAt":"2021-02-22T05:08:19Z","isPatch":false,"sender":{"key":"adam.shrfdn@gmail.com","avatar":null},"body":"Hello\n\nIn the file Documentation/git-push.txt under the EXAMPLES section,\nspecifically under\n`git push origin`::, remote.origin.merge configuration variable is\nsaid to configure the\nupstream branch for the origin remote, when in fact it should be\nbranch.<name>.merge,\nwhere <name> is the name of the local branch at which HEAD is\ncurrently pointing to.\n\nHere's en excerpt:\n\n> `git push origin`::\n>         Without additional configuration, pushes the current branch to\n>         the configured upstream (`remote.origin.merge` configuration\n>         variable) if it has the same name as the current branch, and\n>         errors out without pushing otherwise.\n\n\nI'm still learning Git so I thought I would share this with you (I got\nconfused reading\nthe examples). Maybe I'll learn something new or/and correct the\naforementioned error.\n\nRegards\n\n--\nAdam\n"},{"id":"417816","messageId":"1fd7d816-1572-8563-1c4d-4be83926e4a2@gmail.com","threadId":"55182","inReplyTo":"CAAxrY9yjTKV8-K0AmO4fBmtDrSB4KkN_xKOMmtSb-dvixJNaEQ@mail.gmail.com","subject":"Re: Wrong configuration variable mentioned in git-push documentation (examples section)","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2021-02-25T13:57:53Z","receivedAt":"2021-02-25T13:58:40Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi Adam,\n\nLe 2021-02-22 à 00:07, Adam Sharafeddine a écrit :\n> Hello\n> \n> In the file Documentation/git-push.txt under the EXAMPLES section,\n> specifically under\n> `git push origin`::, remote.origin.merge configuration variable is\n> said to configure the\n> upstream branch for the origin remote, when in fact it should be\n> branch.<name>.merge,\n> where <name> is the name of the local branch at which HEAD is\n> currently pointing to.\n> \n> Here's en excerpt:\n> \n>> `git push origin`::\n>>          Without additional configuration, pushes the current branch to\n>>          the configured upstream (`remote.origin.merge` configuration\n>>          variable) if it has the same name as the current branch, and\n>>          errors out without pushing otherwise.\n> \n> \n> I'm still learning Git so I thought I would share this with you (I got\n> confused reading\n> the examples). Maybe I'll learn something new or/and correct the\n> aforementioned error.\n> \n\nYou are completely right, that example seems to use an old and now non-existent\n(at least, undocumented in git-config(1) [1]) configuration variable.\nI encourage you to fix it yourself and submit a patch :) See [2] for a nice tutorial on\nhow to do this if you are interested.\n\nCheers,\nPhilippe.\n\n\n[1] https://git-scm.com/docs/git-config\n[2] https://git-scm.com/docs/MyFirstContribution\n"}]}