git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to remove git branch

From
Mathias Lafeldt <misfire@debugon.org>
Date
Oct 29, 2010, 07:54 UTC
Message-ID
<4CCA7DA8.3020607@debugon.org>
In-Reply-To
<201010290943.13177.sasch.pe@gmx.de>
Sascha Peilicke wrote:
Show 11 quoted lines
> 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
Previous: Sascha PeilickeNext: Mathias Lafeldt
Message 2 of 5 in “Unable to remove git branch”
  1. Sascha PeilickeOct 29, 2010
  2. Mathias LafeldtOct 29, 2010
  3. Mathias LafeldtOct 29, 2010
  4. Sascha PeilickeOct 29, 2010
  5. Jonathan NiederOct 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.