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

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

 



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.



[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