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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux