Re: [PATCH v2 6/6] doc: push: explain default=simple correctly
From: Mathias Kunter <hidden>
Date: 2021-05-31 07:12:57
Am 30.05.21 um 21:09 schrieb Felipe Contreras:
quoted
quoted
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.