When deleting remote git branch “error: unable to push to unqualified destination”

后端 未结 9 1896
南旧
南旧 2020-12-12 10:42

I\'m trying to delete a remote git branch with

git push origin :my_remote_branch

and getting:

error: unable to push to unq         


        
9条回答
  •  时光取名叫无心
    2020-12-12 11:25

    Had this same issue, I manually edited my ./.git/config file to include:

    [branch "branchName"]
    remote = origin
    merge = refs/heads/branchName
    

    Which resulted into: error: src refspec branchName matches more than one. This I fixed by running $git tag -d branchName. After which I was able to push the new branch to upstream.

提交回复
热议问题