-
-
Save ThomasBurleson/072c194a8142d93154b480bd0c17d96a to your computer and use it in GitHub Desktop.
How to: Delete a remote Git tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove local tag | |
git tag -d tagname-123 | |
# remove remote tag | |
git push origin :refs/tags/tagname-123 | |
# delete multiple tags by patterns | |
for tag in $(git tag -l '[production|tusur]*'); do git tag -d $tag; git push origin :refs/tags/$tag; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://blog.greenkeeper.io/one-simple-trick-for-javascript-package-maintainers-to-avoid-breaking-their-user-s-software-and-to-6edf06dc5617