Delete a local and remote tag in Git.

Author
By Darío Rivera
Posted On in Git

Many times we release a version of a library or project and create a new tag thinking that everything is ready and just afterwards you realize that you missed a certain detail. Fortunately, in Git we have the possibility to delete a tag that has already been created both locally and remotely in order to recreate it as necessary. Below you will see how to delete this mentioned tag.

Delete a Local Tag

You just need to replace tag_name with the created tag, e.g. v1.0.0.

git tag -d tag_name

Delete a Remote Tag

You just need to replace tag_name with the created tag, e.g. v1.0.0.

git push --delete origin tag_name

Until next time!


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.