How to delete a remote Git tag

If some day for any reason you want to remove a tag because maybe you make a mistake and you want to move your Git tag to another commit, then you are going to need:

  1. Delete the tag from local repository
  2. Remove the tag in the remote repository

git-icon

For doing these operations, just execute next commands:

// Delete tag "1.3.0" from local
git tag -d 1.3.0

// Delete tag in remote (synchronizing)
git push origin :refs/tags/1.3.0

BTW, maybe you find this list of  Git commands useful for your work: x

That’s it!

Be happy with your repo!

 

Leave a Reply

Your email address will not be published. Required fields are marked *