From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Accidentally pushed a branch Date: Sun, 19 Jun 2022 18:16:21 +1200 Message-ID: <65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz> References: <7AD56B32-FCA1-498B-87CE-50E2FEED59C7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14351"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Emacs Devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 19 08:17:43 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2oFi-0003cZ-Q6 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 08:17:42 +0200 Original-Received: from localhost ([::1]:45156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2oFh-0001Jl-0h for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 02:17:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2oEc-0000dO-Jv for emacs-devel@gnu.org; Sun, 19 Jun 2022 02:16:37 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:50235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2oEX-0007ao-Ug for emacs-devel@gnu.org; Sun, 19 Jun 2022 02:16:32 -0400 Original-Received: from [10.253.37.70] (port=52425 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1o2oEP-0003Pa-Bt; Sun, 19 Jun 2022 18:16:21 +1200 Original-Received: from ip-116-251-140-135.kinect.net.nz ([116.251.140.135]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sun, 19 Jun 2022 18:16:21 +1200 In-Reply-To: <7AD56B32-FCA1-498B-87CE-50E2FEED59C7@gmail.com> X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.59; envelope-from=psainty@orcon.net.nz; helo=smtp-4.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291405 Archived-At: On 2022-06-19 12:00, Yuan Fu wrote: > Errr I accidentally pushed to tree-sitter rather than > feature/tree-sitter, how can I delete that branch? Eli has answered, but as a FYI: There's a somewhat obtuse git syntax for deleting things, which is to say "push 'nothing' to " via the more-verbose push syntax "git push :" Hence "git push origin :tree-sitter" would delete the tree-sitter branch on the origin remote, because the value is empty. This may help to make sense of the explanation of the --delete option in the git-push man page.