我输入了一个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
Run Code Online (Sandbox Code Playgroud)
我该如何删除这个分支?
Mar*_*tos 11
git branch -d -- --track
Run Code Online (Sandbox Code Playgroud)
通常,--告诉git将所有后续命令行参数视为非选项.
编辑:请参阅评论,以了解git如何使用--.
| 归档时间: |
|
| 查看次数: |
330 次 |
| 最近记录: |