Forrest logo
back to the git tool

git-tag:tldr:8625c

git-tag: Delete the tag with the given name.
$ git tag -d ${tag_name}
try on your machine

The command git tag -d ${tag_name} is used to delete a Git tag.

Here is the breakdown of the command:

  • git tag: This is the main command to manage tags in Git.
  • -d: This option is used to delete a tag. It stands for "delete".
  • ${tag_name}: This is a placeholder for the actual name of the tag you want to delete. You need to replace ${tag_name} with the name of the tag you want to delete.

For example, if you have a tag named "v1.0", you would execute the command git tag -d v1.0 to delete that tag.

Note that this command only deletes the local copy of the tag. If you have already pushed the tag to a remote repository, you might need to also delete it from the remote repository using the git push --delete origin ${tag_name} command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool