From: Yuan Fu <casouri@gmail.com>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Accidentally pushed a branch
Date: Sun, 19 Jun 2022 19:35:22 -0700 [thread overview]
Message-ID: <2F97587D-CD02-4618-BDD4-7D54D3505F96@gmail.com> (raw)
In-Reply-To: <65d5a3d1f2eac2cfca41ab0766695f9a@webmail.orcon.net.nz>
> On Jun 18, 2022, at 11:16 PM, Phil Sainty <psainty@orcon.net.nz> 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 <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.
Thanks, TIL :-)
Yuan
prev parent reply other threads:[~2022-06-20 2:35 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
2022-06-20 2:35 ` Yuan Fu [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2F97587D-CD02-4618-BDD4-7D54D3505F96@gmail.com \
--to=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=psainty@orcon.net.nz \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.