From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lndn.lancelotsix.com (lndn.lancelotsix.com [51.195.220.111]) by sourceware.org (Postfix) with ESMTPS id 028A33858D28 for ; Tue, 23 Nov 2021 12:48:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 028A33858D28 Received: from ubuntu.lan (unknown [IPv6:2a02:390:9086::635]) by lndn.lancelotsix.com (Postfix) with ESMTPSA id 17B3C8198D; Tue, 23 Nov 2021 12:48:25 +0000 (UTC) Date: Tue, 23 Nov 2021 12:48:19 +0000 From: Lancelot SIX To: Jan Vrany Cc: gdb@sourceware.org, Simon Sobisch , Andrew Burgess Subject: Re: feature branch for creating MI commands with python (was: How to create new mi commands via python / get current interpreter in python) Message-ID: <20211123124819.guu3d6hwq6n4qpko@ubuntu.lan> References: <60c53fa8bf160533a2eddf1da280eb50c7461a6a.camel@fit.cvut.cz> <253b903c-b5e3-86bd-2681-c904fb2c5d53@gnu.org> <4a86abc464db6ce661a0ae6d443da3b0b4bd52b2.camel@fit.cvut.cz> <8001469a-1bed-febb-3dbc-3c72c4293033@gnu.org> <09bc45997539f9efe19b69b763123745133cda6e.camel@fit.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <09bc45997539f9efe19b69b763123745133cda6e.camel@fit.cvut.cz> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (lndn.lancelotsix.com [0.0.0.0]); Tue, 23 Nov 2021 12:48:25 +0000 (UTC) X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 12:48:27 -0000 On Tue, Nov 23, 2021 at 12:29:41PM +0000, Jan Vrany wrote: > Hi Simon, Andrew > > > > > > > Done. Rebased on a recent master and pushed into branch: > > > "users/jv/patches/feature-python-mi": > > > > > > https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/users/jv/patches/feature-python-mi > > > > > I have rebased this branch on to of Andrew's patches and > wanted to update the feature branch on sourceware.org but > it failed: > > remote: error: denying non-fast-forward > refs/heads/users/jv/patches/feature-python-mi (you should pull first) > > What's the correct way of updating rebased / edited feature branch? > Hi, When I have to do this and cannot force push to a feature branch, I first delete the remote branch, and then push to re-create it. This could look like something like this (assuming you push the remove called origin): git push origin :users/jv/patches/feature-python-mi git push origin the_name_of_the_local_branch:users/jv/patches/feature-python-mi Hopefully, this does the trick. Best, Lancelot.