From: Phil Sainty <psainty@orcon.net.nz>
To: Yuan Fu <casouri@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Accidentally pushed a branch
Date: Sun, 19 Jun 2022 18:16:21 +1200 [thread overview]
Message-ID: <65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz> (raw)
In-Reply-To: <7AD56B32-FCA1-498B-87CE-50E2FEED59C7@gmail.com>
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 <branch>" via the more-verbose push
syntax "git push <remote> <from>:<to>"
Hence "git push origin :tree-sitter" would delete the tree-sitter
branch on the origin remote, because the <from> value is empty.
This may help to make sense of the explanation of the --delete
option in the git-push man page.
next prev parent reply other threads:[~2022-06-19 6:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-19 0:00 Accidentally pushed a branch Yuan Fu
2022-06-19 6:02 ` Eli Zaretskii
2022-06-20 2:34 ` Yuan Fu
2022-06-19 6:16 ` Phil Sainty [this message]
2022-06-20 2:35 ` Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).