git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Haggerty <mhagger@alum.mit.edu>
To: Junio C Hamano <gitster@pobox.com>
Cc: "abhisekpan@gmail.com" <abhisekpan@gmail.com>, git@vger.kernel.org
Subject: Re: Cannot delete weirdly named branch
Date: Mon, 30 Jul 2012 19:22:17 +0200	[thread overview]
Message-ID: <5016C2C9.5050904@alum.mit.edu> (raw)
In-Reply-To: <7vsjcil3o5.fsf@alter.siamese.dyndns.org>

On 07/23/2012 08:42 PM, Junio C Hamano wrote:
> "abhisekpan@gmail.com" <abhisekpan@gmail.com> writes:
>
>> Now I cannot delete this branch. Running:
>> git branch -d --tracking
>> gives an error: unknown option `tracking'
>
> I do not think this is supposed to work, but it does by accident.
>
>      $ git branch -d -- --tracking
>      Deleted branch --tracking (was 8670e20).

The plumbing command "git update-ref -d refs/heads/--tracking" can also 
be used to delete such a branch.

Michael

-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/

  reply	other threads:[~2012-07-30 17:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGhmpEFg2ZcwqO=wDNPLfPCnrobq4oOcwvFCm27vrEuiES2XbQ@mail.gmail.com>
2012-07-23 18:32 ` Cannot delete weirdly named branch abhisekpan
2012-07-23 18:42   ` Junio C Hamano
2012-07-30 17:22     ` Michael Haggerty [this message]
2012-07-30 17:55       ` Junio C Hamano

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=5016C2C9.5050904@alum.mit.edu \
    --to=mhagger@alum.mit.edu \
    --cc=abhisekpan@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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.
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 NNTP newsgroup(s).