Skip to content

Instantly share code, notes, and snippets.

@Jan-Bart
Jan-Bart / git-tag-delete-local-and-remote.sh
Last active July 26, 2018 10:40 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# show all tags
git tag
# show only some tags
git tag -l <pattern>
git tag --sort=<type>
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach