DEV Community

Cover image for Remove all tags from git repo
Adam K Dean
Adam K Dean

Posted on

Remove all tags from git repo

I had started to tag builds with a branch name and date, but after a while, these started to make the log unreadable. It was time to Arnold Schwarzenegger-ize them.

I found this somewhere online:

for t in `git tag`
do
    git push origin :$t
    git tag -d $t
done
Enter fullscreen mode Exit fullscreen mode

Saved it to removetags.sh, ran it, and now my life (and log) is much happier.

Latest comments (0)