From: Mathias Lafeldt <misfire@debugon.org>
To: Sascha Peilicke <sasch.pe@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Unable to remove git branch
Date: Fri, 29 Oct 2010 09:54:16 +0200 [thread overview]
Message-ID: <4CCA7DA8.3020607@debugon.org> (raw)
In-Reply-To: <201010290943.13177.sasch.pe@gmx.de>
Sascha Peilicke wrote:
> Hi guys,
>
> I accidentally did an 'git co -b --track origin/foo' ending up with a local
> branch '--track'. Sadly, git is unable to remove or rename that branch because
> it always interprets it as a parameter.
>
> As a consequence, 'git br -d "--track"' does nothing and 'git br -m "--track"
> foo' even renames the current branch, say, master, to 'foo'. Any hints on how
> to get rid of that pesky branch?
>
> BTW please CC me as I'm not subscribed to this list.
Try:
$ git br -D -- --track
-Mathias
next prev parent reply other threads:[~2010-10-29 7:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-29 7:43 Unable to remove git branch Sascha Peilicke
2010-10-29 7:54 ` Mathias Lafeldt [this message]
2010-10-29 7:56 ` Mathias Lafeldt
2010-10-29 8:31 ` Sascha Peilicke
2010-10-29 8:42 ` Jonathan Nieder
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=4CCA7DA8.3020607@debugon.org \
--to=misfire@debugon.org \
--cc=git@vger.kernel.org \
--cc=sasch.pe@gmx.de \
/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).