我意外地创建了一个名为--track的git本地分支,如何删除它?

我意外地创建了一个名为--track的git本地分支,如何删除它?,git,Git,我输入了一个git命令,导致创建了一个名为“--track”的本地分支 我尝试了以下方法: git branch -m --track delme (this renames the current branch to delme, not the branch called --track) git checkout --track > fatal: --track needs a branch name git branch -d --track (does nothing, re

我输入了一个git命令,导致创建了一个名为“--track”的本地分支

我尝试了以下方法:

git branch -m --track delme
(this renames the current branch to delme, not the branch called --track)

git checkout --track
> fatal: --track needs a branch name

git branch -d --track
(does nothing, reports nothing)

git branch -D --track
(also does nothing)

git branch -d "--track"
(also does nothing
如何删除此分支

git branch -d -- --track
通常,
--
告诉git将所有后续命令行参数视为非选项


编辑:有关git如何使用
--

完美:-)的说明,请参见注释。非常感谢。实际上,
--
告诉几乎所有Unix命令将所有后续命令行参数视为非选项。但许多git命令使用
--
作为修订版参数和pathspec参数之间的分隔符(这两个都不是选项)…但对于
git分支