Thread (59 messages) 59 messages, 5 authors, 2021-06-01

Re: [PATCH v2 6/6] doc: push: explain default=simple correctly

From: Mathias Kunter <hidden>
Date: 2021-05-30 18:19:10

Am 29.05.21 um 09:11 schrieb Felipe Contreras:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help