Featured image of post Deleting a tag in git

Deleting a tag in git

Delete a local tag

  1. Check existing local tags with git tag.
  2. Delete the tag with git tag -d v0.1.0. (Replace v0.1.0 with the tag you want to delete)

Delete a remote tag

  1. Check existing remote tags with git ls-remote --tags.
  2. Delete the remote tag with git push origin --delete v0.1.0. (Replace v0.1.0 with the tag you want to delete)

Reference

How to delete a tag in git locally and remotely!

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus