Home

How To Delete a Git Tag

It's easy to delete a git tag from your local and remote repositories.

Let's say you created tag v1.0 too early. You can delete it from your local repository by running the following command.

$ git tag -d v1.0

If you've already pushed the tag, you can remove it from your remote repository with this command.

$ git push origin :refs/tags/v1.0

Then, if you want to create it and push it again later, you can go right ahead and do so.

$ git tag -a v1.0 -m "My new tag"
$ git push origin --tags

Let's Connect

Keep Reading

Git: Set Default Branch to "main" on "init"

Tired of remembering to rename the master branch after running git init? This option will help you!

Mar 18, 2021

Git: List All Config Options

See all the options available to you, and also learn how to filter them.

Mar 17, 2021

Should I Add Images to My Git Repository?

To commit or not commit. A list of reasons and resources to support your decision.

Sep 01, 2022