You can push the full branch refspec:
git push origin :refs/heads/3.0.0
# shorter:
git push origin :heads/3.0.0
That would reference only a branch, not a tag (refs/tags/3.0.0
).
Here the refspec has no source in front of the ‘:
‘: that means HEAD
.
:refs/heads/3.0.0
is HEAD:refs/heads/3.0.0
.
That means you need to checkout the correct branch before pushing.