Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

As using gerrit, how to remove remotes tag?

Tags:

git

gerrit

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://[email protected]:29418/testproject'

What's wrong with it ?

like image 960
Wang Xiaoyu Avatar asked Jan 19 '15 02:01

Wang Xiaoyu


People also ask

How do I remove a remote tag?

The syntax is: git push --delete [remote_name] [tag1] [tag2] ... The command deletes the specified remote tags. The command deletes all the tags from the specified remote repository.

How do you remove a tag?

Tap Photos you're tagged in. Tap the photo you want to hide. Tap to open the photo, then tap to the right of the photo. Tap Remove Tag.

How do I untag something in git?

To delete the Git tag from the local repo, run the git tag -d tag-name command where tag-name is the name of the Git tag you want to delete.


1 Answers

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

like image 174
Marcelo Ávila de Oliveira Avatar answered Oct 02 '22 15:10

Marcelo Ávila de Oliveira