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-31 17:38:56

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