如何在 GitLab 存储库中删除标签 [英] How do I remove Tag in GitLab repository

查看:65
本文介绍了如何在 GitLab 存储库中删除标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 GitLab 7.7.2 并尝试在 GitLab 的存储库中删除标签.我可以删除本地存储库中的标签,但不能删除源中的标签.如何删除 GitLab 存储库中的标签?

I am using GitLab 7.7.2 and tried to remove Tag in a repository in GitLab. I could remove tag in a local repository but cannot remove tag in origin. How do I remove tag in GitLab repository?

$ git tag -d Tag_AAA
Deleted tag 'Tag_AAA' (was d10bff2)

$ git push --delete origin Tag_AAA
remote: GitLab: You don't have permission
To git@git.aaa.bbb.ccc:root/Repository.git
 ! [remote rejected] Tag_AAA (pre-receive hook declined)
error: failed to push some refs to 'git@git.aaa.bbb.ccc:root/Repository.git'

推荐答案

现在(GitLab 12.1,2019 年 7 月),开发人员可以删除(不受保护的)标签(不仅仅是维护者或所有者)

Now (GitLab 12.1, July 2019), a developer can remove a (non-protected) tag (not just a maintainer or owner)

参见开发者角色可以重写/删除 Git 标签"

Git 标签对于引用特定点很有用,通常用于标记特定版本的版本.

Git tags are useful for referencing specific points and are typically used for tagging specific versioned releases.

为了让开发团队更容易使用 git 标签,我们添加了允许开发人员重写和删除不受保护的标签的功能.
受保护的标签仍需要维护者或所有者权限.

To make git tags easier to use by development teams, we’re adding the ability to allow Developers to rewrite and remove non-protected tags.
Protected tags still require Maintainer or Owner permissions.

权限矩阵已更新.
请参阅 问题 52954.

这篇关于如何在 GitLab 存储库中删除标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆