git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Peilicke <sasch.pe@gmx.de>
To: git@vger.kernel.org
Subject: Unable to remove git branch
Date: Fri, 29 Oct 2010 09:43:12 +0200	[thread overview]
Message-ID: <201010290943.13177.sasch.pe@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

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.
-- 
Mit freundlichen Grüßen,
Sascha Peilicke
http://saschpe.wordpress.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2010-10-29  7:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-29  7:43 Sascha Peilicke [this message]
2010-10-29  7:54 ` Unable to remove git branch Mathias Lafeldt
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=201010290943.13177.sasch.pe@gmx.de \
    --to=sasch.pe@gmx.de \
    --cc=git@vger.kernel.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.
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).