{"thread":{"id":"18803","subject":"Delete branch start with \"-\"","startedAt":"2009-04-09T12:28:48Z","lastAt":"2009-04-09T13:12:10Z","messageCount":2,"participants":["Yoann Hervé","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"110915","messageId":"49DDEA00.9090003@makina-corpus.com","threadId":"18803","inReplyTo":null,"subject":"Delete branch start with \"-\"","fromName":"Yoann Hervé","fromEmail":"yoann.herve.ext@makina-corpus.com","sentAt":"2009-04-09T12:28:48Z","receivedAt":"2009-04-09T12:28:48Z","isPatch":false,"sender":{"key":"yoann.herve.ext@makina-corpus.com","avatar":null},"body":"Hello,\nby mistake I have created a branch with a \"-\" at the beginning of his \nname, and now I can't delete it.\n\n git branch -d -f\n error: unknown switch `s'\n usage: git-branch [options] [-r | -a] [--merged | --no-merged]\n    or: git-branch [options] [-l] [-f] <branchname> [<start-point>]\n    or: git-branch [options] [-r] (-d | -D) <branchname>\n    or: git-branch [options] (-m | -M) [<oldbranch>] <newbranch>\n\n Generic options\n     -v, --verbose         be verbose\n     --track               set up tracking mode (see git-pull(1))\n     --color               use colored output\n     -r                    act on remote-tracking branches\n     --contains <commit>   print only branches that contain the commit\n     --abbrev[=<n>]        use <n> digits to display SHA-1s\n\n Specific git-branch actions:\n     -a                    list both remote-tracking and local branches\n     -d                    delete fully merged branch\n     -D                    delete branch (even if not merged)\n     -m                    move/rename a branch and its reflog\n     -M                    move/rename a branch, even if target exists\n     -l                    create the branch's reflog\n     -f                    force creation (when already exists)\n     --merged              list only merged branches\n\nHow can I delete it ?\n\nThanks,\nYoann\n"},{"id":"110916","messageId":"20090409131210.GE4413@atjola.homenet","threadId":"18803","inReplyTo":"49DDEA00.9090003@makina-corpus.com","subject":"Re: Delete branch start with \"-\"","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-04-09T13:12:10Z","receivedAt":"2009-04-09T13:12:10Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.04.09 14:28:48 +0200, Yoann Hervé wrote:\n> Hello,\n> by mistake I have created a branch with a \"-\" at the beginning of his  \n> name, and now I can't delete it.\n>\n> git branch -d -f\n>\n> error: unknown switch `s'\n\nUhm, that error message doesn't fit the command... Anyway, use -- to\nseparate the branch name from the options:\n\ngit branch -d -- -f\n\nBjörn\n"}]}