Removing Local and Remote Git Tags
As I was experimenting with git tags, I ended up with a bunch of them that I didn’t need and I wanted to remove them all. One things to keep in mind is that tags similarly to branches can be local or remote. If you create tags but don’t push them then they’re just local and you can remove them using git tag -d tagname. You do need to specify the exact tag name to do that which you can get by listing all available tags with git tag. But removing them one by one can be tedious so you can combine the two mentioned commands into the following one-liner. ...