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

Backup Gitlab Data and Repositories to Amazon S3

Make sure you don't lose all that precious GitLab data by backing regularly and syncing with an Amazon S3 bucket.

Dec 11, 2014

Delete Multiple Local Git Branches

Learn how to use a single command to delete multiple git branches.

Jun 21, 2021

Free Alternatives to GitHub for Private Git Hosting

GitHub is super awesome, until you have to start paying for it. Check out two feature-full and FREE alternatives.

Jan 08, 2015