try:
git branch -D -- --tracksolr-1-3

those extra -- tell git to stop checking for options

Dave Smith

2009/8/10 pharkle <alex.farr...@gmail.com>

>
> I wish I hadn't done this... but I accidentally named a branch "--
> tracksolr-1-3" and now can neither delete it with git branch -D nor
> check it out with git checkout.  e.g.:
>
> >>git branch -D "--tracksolr-1-3"
> error: unknown option `tracksolr-1-3'
>
> >>git checkout --tracksolr-1-3
> error: unknown option `tracksolr-1-3'
>
> Neither quotes nor backslash escaping the hyphens in the branch name
> seem to do the trick.... I guess I should just rm -rf my repo and
> check it out again?  Is that the only thing one can do?
>
> Thanks,
> Alex
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to