Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed May 13, 2024
1 parent f8e6f79 commit 0bee92c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions delete_a_tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Specific tag to delete
TAG="$1"

# Delete the specific local tag
git tag -d $TAG

# Fetch the current list of tags
git fetch

# Delete the specific remote tag
git push --delete origin $TAG

# Prune local references to remote tags
git fetch --prune --prune-tags

# Delete the specific GitHub release using the GitHub CLI
gh release delete $TAG --yes

0 comments on commit 0bee92c

Please sign in to comment.