git

Remove all tags from git repo

adamkdean

Adam K Dean

Posted on March 6, 2014

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.

💖 💪 🙅 🚩
adamkdean
Adam K Dean

Posted on March 6, 2014

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related