Remove local tag in Git

Asked

Viewed 2,527 times

3

How do I delete a tag that was created locally in my git repository and has not yet been "pushada"

Example:

I created the tag v1.4.9, but I noticed I was in the wrong branch before I did git push. I want to remove the tag v1.4.9 that is locally created.

  • use the command line below, according to github

1 answer

5


You can do it like this:

$ git tag -d v1.4.9

that is to say $ git tag and together -d to erase or -a to add followed by the string tag

  • 1

    perfect, thank you very much!

  • @jpklzm if the user’s answer answered your question, please mark his answer as correct.

  • The system was preventing me from marking the answer as correct. It asked me to wait 15 minutes and I ended up having no way back.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.