Skip to content

Conversation

@hyperupcall
Copy link

@hyperupcall hyperupcall commented Oct 17, 2023

The --delete flag can be used for deleting both remote branches and tags. This updates "Delete remote tag" to do that. It also adds a deletion syntax without the refs/tags so it's known that it's usually not necessary.

@hyperupcall hyperupcall force-pushed the hyperupcall-delete-remote-tag branch from de14fb2 to 25bbaa9 Compare October 17, 2023 11:34
@baooab
Copy link

baooab commented Oct 25, 2023

git push origin --delete refs/tags/<tag-name> feels a bit redundant. It can be changed to the following, which will be more concise.


git push origin --delete <tagname>

Alternatives:

git push origin :refs/tags/<tag-name>

@hyperupcall
Copy link
Author

@baooab Agreed! Made those edits

@hyperupcall hyperupcall closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants