From: Mathias Lafeldt Date: Fri, 29 Oct 2010 07:54:16 GMT Subject: Re: Unable to remove git branch Message-ID: <4CCA7DA8.3020607@debugon.org> 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