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

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

 



Am 31.05.21 um 17:14 schrieb Felipe Contreras:
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.

No, you can't:

   % git push
   fatal: The current branch fix-1 has no upstream branch.
   To push the current branch and set the remote as upstream, use

       git push --set-upstream origin fix-1

Isn't that problem the one you originally described [1]?

It is.

Maybe you are thinking this patch series implements the fix I proposed:
it doesn't.

Yes, I thought so. Sorry for the confusion. When I asked "will your provided patch fix these failing push commands" you answered "It's not really a patch (yet), but yeah: it will". So that's why I thought so.

My point simply is: For the sake of easiness of use, I think the following should work with the default settings of git:

   git clone $url
   git checkout -b fix-1
   # do commits
   git push           # should push to origin/fix-1
   # others push to origin/fix-1 (but no local changes)
   git pull           # should pull from origin/fix-1

Will this be implemented?



[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