Cannot delete weirdly named branch
- From
- abhisekpan@gmail.com <abhisekpan@gmail.com>
- Date
- Jul 23, 2012, 18:32 UTC
- Message-ID
- <CAGhmpEGEZchXc4DqZ21BAKxf6_mHRp=TOUH8s=GG0vPscz1kfg@mail.gmail.com>
- In-Reply-To
- <CAGhmpEFg2ZcwqO=wDNPLfPCnrobq4oOcwvFCm27vrEuiES2XbQ@mail.gmail.com>
Hi,
I am a new user to git and I found an interesting behavior in git. I am not sure if this is a bug, but I thought I would report this anyway!
So I can create a local branch called "--tracking" like this: git checkout -b --tracking origin/somebranch I messed up the syntax while trying to create a tracking branch, but this resulted in a local branch called "--tracking".
Now I cannot delete this branch. Running: git branch -d --tracking gives an error: unknown option `tracking'
Using quotes around the name does not help. Is there another command I can use to delete this branch?
Thank you! -- Abhisek Live Long and Prosper