Re: Delete branch start with "-"
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Apr 9, 2009, 13:12 UTC
- Message-ID
- <20090409131210.GE4413@atjola.homenet>
- In-Reply-To
- <49DDEA00.9090003@makina-corpus.com>
On 2009.04.09 14:28:48 +0200, Yoann Hervé wrote:
Show 7 quoted lines
> Hello, > by mistake I have created a branch with a "-" at the beginning of his > name, and now I can't delete it. > > git branch -d -f > > error: unknown switch `s'
Uhm, that error message doesn't fit the command... Anyway, use -- to separate the branch name from the options:
git branch -d -- -f
Björn