Reputation: 7957
I make a mistake to push a tag name v2.3, I already have the branch name v2.3. When I try to remove the branch v2.3:
git push origin :v2.3
It said,
qty:ibt-common qrtt1$ git push origin :v2.3 :v2.3_working
error: dst refspec v2.3 matches more than one.
error: failed to push some refs to '[email protected]:mygit/common.git'
Is it possible to remove the branch when naming conflict ?
Upvotes: 2
Views: 215
Reputation: 38636
You could disambiguate the refspec like this:
git push origin :refs/heads/branchname
More information in this question.
Upvotes: 4