Search code examples
gitgit-tag

What to do with an unwanted tag in the tag list?


When I run git tag the first line is value 2 - what is it? If it was a wrong tag record (there should not be that tag) how to remove it?

PS C:\Users\rozerro\StudioProjects\testing_project> git tag
2
step-1
step-2
step-3
step-4
step-5
step-6
step-7

Solution

  • Indeed, as you suspected, you have a tag called 2.

    If you're sure you don't need it, you can remove it using the -d flag:

    git tag -d 2