From: Mathias Kunter Date: Mon, 31 May 2021 07:12:46 GMT Subject: Re: [PATCH v2 6/6] doc: push: explain default=simple correctly Message-ID: <3e5c2303-030e-928e-af57-8e2be8f3ce86@gmail.com> In-Reply-To: <60b3e2ceee840_ee4c20823@natae.notmuch> Am 30.05.21 um 21:09 schrieb Felipe Contreras: >>> The current branch is pushed to the corresponding upstream branch, but >>> as a safety measure, the push is aborted if the upstream branch does not >>> have the same name as the local one. > > Except that isn't accurate. > > git clone $url > git checkout -b fix-1 > # do commits > git push > > Does that push the current branch to the corresponding upstream branch? I see. Then maybe reword to something like this: > The current branch is pushed to a branch with the same name on the > remote, but as a safety measure, the push is aborted if a corresponding > upstream branch does not have the same name as the local one. In your above example, I'm in centralized workflow, but I can still push the fix-1 branch to origin without having to configure an upstream branch for it. So this seems to contradict with the currently proposed wording: > If you are working on a centralized workflow, then you need to configure > an upstream branch with the same name.