Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Last active August 20, 2021 03:16
Show Gist options
  • Save geraldyeo/822f84d13fe4372d70edcad95ef22d81 to your computer and use it in GitHub Desktop.
Save geraldyeo/822f84d13fe4372d70edcad95ef22d81 to your computer and use it in GitHub Desktop.
Delete a git tag
# list local tags with description
git tag -n
# delete local tag
git tag -d 3.3.1 # Deleted tag '3.3.1' (was 56469e1)
# delete remote tag
git push origin :refs/tags/3.3.1
# list remote tags
git ls-remote --tags origin # - [deleted] 3.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment