本文介绍了使用gerrit时,如何删除遥控器标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

大家!我正在使用Gerrit,遇到了一些问题.我创建了一个标记为v1.0.我现在想从本地和远程删除它.操作已完成:

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
  • git tag -d v1.0
  • git push origin refs/tags/v1.0

然后,我遇到了一个错误:! [remote rejected] v1.0 (cannot delete references)error: failed to push some refs to 'ssh://[email protected]:29418/testproject'

Then , I met a error: ! [remote rejected] v1.0 (cannot delete references)error: failed to push some refs to 'ssh://[email protected]:29418/testproject'

这是怎么了?

推荐答案

要删除或覆盖现有标签,请为参考名称refs/tag启用强制推送"选项,授予(设置为"ALLOW")"Push"权限/*.

To delete or overwrite an existing tag, grant (set "ALLOW") "Push" permission with the "Force Push" option enabled for reference name refs/tags/*.

这篇关于使用gerrit时,如何删除遥控器标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 07:30