1

大厅管道构建失败并出现错误提示:

Updates were rejected because the tag already exists in the remote.
demo_app-source
Updated tag 'DEMO_0.0.3' (was fb544ad)
To https://proactionus..com/bitbucket/scm/cacsad/demo.git
 ! [rejected]        DEMO_0.0.3 -> DEMO_0.0.3 (already exists)
error: failed to push some refs to 'https://proactionus.com/bitbucket/scm/cacsad/demo.git'
hint: Updates were rejected because the tag already exists in the remote.

如何避免此错误消息?

4

3 回答 3

1

这取决于您的情况:

在第二种情况下,请确保将其恢复DEMO_0.0.3到原来的位置(检查它在遥控器中的位置origin

于 2020-12-25T19:17:09.607 回答
0

我遇到了同样的错误,但在我的场景中,分支名称与标签相同。不允许为分支和标签指定相同的名称。

于 2021-09-20T15:12:58.710 回答
0

我通过在存储库路径下从 git bash 运行以下命令来修复此错误 git tag -l | xargs -n 1 git push --delete origin

于 2020-12-29T08:10:59.397 回答