Skip to content

Commit

Permalink
script to recreate v1 tag pointing to latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna committed Jul 12, 2024
1 parent 2102612 commit f8c2e6c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/recreate-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# This script recreates tag v1 in the repository
# It will:
# 1. Fetch all tags and prune them
# 2. Checkout the main branch
# 3. Delete the tag v1
# 4. Push the deletion of the tag v1
# 5. Create the tag v1


TAG_NAME="v1"

git fetch --tags --prune-tags -f
git checkout origin/main
git tag -d $TAG_NAME
git push --delete origin $TAG_NAME
git tag $TAG_NAME
git push origin $TAG_NAME

0 comments on commit f8c2e6c

Please sign in to comment.