From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Accidentally pushed a branch Date: Sun, 19 Jun 2022 19:35:22 -0700 Message-ID: <2F97587D-CD02-4618-BDD4-7D54D3505F96@gmail.com> References: <7AD56B32-FCA1-498B-87CE-50E2FEED59C7@gmail.com> <65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19902"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 20 04:36:23 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 1o37H5-000525-2T for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Jun 2022 04:36:23 +0200 Original-Received: from localhost ([::1]:52100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o37H3-00013n-Jk for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 22:36:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o37GA-0007Z6-NG for emacs-devel@gnu.org; Sun, 19 Jun 2022 22:35:26 -0400 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:51788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o37G9-000198-8o for emacs-devel@gnu.org; Sun, 19 Jun 2022 22:35:26 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id f16so7583085pjj.1 for ; Sun, 19 Jun 2022 19:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kQEz+RhM4ZlFVw9bkTbyh+4ljeKq+GWuPj5MvbW8dXo=; b=ZSGZNLtzHQIoo0nLhwcd38pEBfonhu+RXdXYG1G92oQnvDFRj/VqIKM7yAm8BZCMcC ze7V+p0nEmsEXpQ6UkTsRhX9qxlV7qctpw8hesBzZBX6XRagATfuBSmmwV0kaDyO4y9W mpbXaG9293d7qG4pDhV4dy7oDN+KxgfjZ12HxpjZmjmiDGErg9tqtcouAr73z+vHh2DS wXC2dT3i+eKtsNqXL11Locs87Yr1i9znU7ekinXRdMNjOMq+iUCTkSGH3fUowLkhr1ft GCrd9FbjYC7IaeFMCRv/y8FBPCktJzr+1G0q1DkXN1iGntkytXEGAjpJg8bcvhPiZxkY WHxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kQEz+RhM4ZlFVw9bkTbyh+4ljeKq+GWuPj5MvbW8dXo=; b=XhMG0/c9EEVIa2r3SzT17u4eYhqosyyxO/FcNTQl3nRvsIlpaYiUOOYr3sBleQiXwk 5r2Thy+JbLVYwhN7J6s5RlbT6XQh0noTGap8dw95iOwWLfZj5xO6MWxITH1mOR/2afF1 hFxup/SU+g9warA9QmMJN7jGn0CjU+qu/6Goa/LI+aSlhdngqpCX1ActOrzp5Rn0oZ/T YXLfr7mray9NSKa73vP9sA4/5vgzDz8TKTpcqM+PS55anM6Z2DW5/WfNzlvRmAKo698q EfbGkiTV0SjfKjk+yPa40rbeZEW5fcDwSK/5jvq7a3/H9C/UIR0R+3aM+x7jJJfmzmvw D7CA== X-Gm-Message-State: AJIora9lYFCIEuS/9N+ezyPzcqFAb1K1G2KIfB6S63vdfotZWaI8DBNA MwgdgQjdBNZHv246g+22z2/wfvvuCPo= X-Google-Smtp-Source: AGRyM1t85wc4gu8RkjeDnQPq+/WyZ66ZI/bXOIS/47sIhmg5udlLe9GY+whzBtHA3tJKsWFDXwiUsw== X-Received: by 2002:a17:90b:4c8a:b0:1e3:60f:58c3 with SMTP id my10-20020a17090b4c8a00b001e3060f58c3mr24259791pjb.230.1655692523919; Sun, 19 Jun 2022 19:35:23 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:99d9:ea9d:a995:fcb4]) by smtp.gmail.com with ESMTPSA id jb6-20020a170903258600b0016a12571537sm3183710plb.299.2022.06.19.19.35.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jun 2022 19:35:23 -0700 (PDT) In-Reply-To: <65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz> X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=casouri@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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:291451 Archived-At: > On Jun 18, 2022, at 11:16 PM, Phil Sainty wrote: > > 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. Thanks, TIL :-) Yuan