From: Mathias Kunter Date: Mon, 31 May 2021 16:54:51 GMT Subject: Re: [PATCH v2 6/6] doc: push: explain default=simple correctly Message-ID: <5fa7e3f4-60a0-c3b1-83f2-054ed38e5683@gmail.com> In-Reply-To: <60b4fd4db5dee_24d282088c@natae.notmuch> 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?