Re: [PATCH v2 6/6] doc: push: explain default=simple correctly
- From
Mathias Kunter <mathiaskunter@gmail.com>
- Date
- May 30, 2021, 18:19 UTC
- Message-ID
- <acfafe6e-b0f3-ba2e-71f0-9bcc09b9d612@gmail.com>
- In-Reply-To
- <20210529071115.1908310-7-felipe.contreras@gmail.com>
Am 29.05.21 um 09:11 schrieb Felipe Contreras:
Show 12 quoted lines
> Now that the code has been simplified and it's clear what it's > actually doing, update the documentation to reflect that. > > Namely; the simple mode only barfs when working on a centralized > workflow, and there's no configured upstream branch with the same name. > > [...] > > +* `simple` - pushes the current branch with the same name on the remote. > +If you are working on a centralized workflow (pushing to the same repository you > +pull from, which is typically `origin`), then you need to configure an upstream > +branch with the same name.
I'd like to remark that I personally find the following description of `push.default=simple`, taken from the git push man page [1], easier to understand:
> 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.
[1] https://git-scm.com/docs/git-push#_description