I made a mistake when I checked out a new branch with git. git version 1.7.1
I ran git branch -b --track origin/develop
and I got a branch named --track
. How can I delete it?
What I have done:
$ git branch
--track
* develop
master
$ git branch -d --track
$ git branch -d "--track"
$ git branch -D --track
$ git branch -D "--track"
$ git branch -D '--track'
$ git branch
--track
* develop
master
Try
--
separates options from arguments.