Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Created December 9, 2015 13:51
Show Gist options
  • Save xarimanx/eb498e41d40b37c4a3f1 to your computer and use it in GitHub Desktop.
Save xarimanx/eb498e41d40b37c4a3f1 to your computer and use it in GitHub Desktop.
Script to delete all tags both locally and remotely
for t in `git tag`
do
git push origin :$t
git tag -d $t
done
# and for local
for t in `git tag`
do
git tag -d $t
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment