How to fix 'Git tag already exists' but that tag did not exists?

My setup: git-repository on an Azure DevOps.

enter image description here

When i create a git tag using Git Repo Tagger (Task on pipeline) like "12.0.0101" The tagger returns

 ##[error]Command failed: git tag  -a "12.0.0101" -m "12.0.0101" 
 fatal: tag '12.0.0101' already exists
 [error]Git Repo Tagger Failed.

But when i list all the tags with

git tag -l or git tag

That tag did not exists

I just tried to checkout that not existant tag, but as expected, the tag not exists.

If i try to generate manually that tag, (from the azure devops page) it works, but in the build pipeline, fails.

Also, i have many builds with the same task, and it works, only in this branch seems not working.

Upvotes: 1

Views: 3337

Answers (1)

Its solved changed this configuration, seems like in any moment, the git tag only exists in the server.

enter image description here

Upvotes: 1

Related Questions