我无法删除名为origin/featureBranch. 我想这是因为分支名称以 开头origin,但我不确定:
$ git branch -r | grep featureBranch
  origin/origin/featureBranch
$ git push origin :origin/featureBranch
    error: unable to push to unqualified destination: origin/featureBranch
    The destination refspec neither matches an existing ref on the remote nor
    begins with refs/, and we are unable to guess a prefix based on the source ref.
    error: failed to push some refs to 'git@github.com:myCompany/my-repo.git'
更新
$ git push origin :featureBranch给出同样的错误。
笔记
在远程分支是origin/origin/myFeature,在本地是origin/myFeature。
我知道origin通常是什么意思,但就我而言 - 这是分支名称的一部分。
Github 没有看到这个分支。
谁能解释一下“幕后”发生了什么以及如何删除这个分支?