问题
everybody! I am using gerrit, and i met some issue. I have created a tag which is v1.0. And I want to delete it from local and remote now. The operations have been done:
git tag -d v1.0
git push origin refs/tags/v1.0
Then , I met a error: ! [remote rejected] v1.0 (cannot delete references)
error: failed to push some refs to 'ssh://admin@review.thomas.com:29418/testproject'
What's wrong with it ?
回答1:
To delete or overwrite an existing tag, grant (set "ALLOW") "Push" permission with the "Force Push" option enabled for reference name refs/tags/*.
来源:https://stackoverflow.com/questions/28017325/as-using-gerrit-how-to-remove-remotes-tag