Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add script to recreate v1 tag #25

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

rubenruizdegauna
Copy link
Contributor

Summary

Introduces recreate-tag.sh, a script for automating the recreation of Git tag v1

  • Automates fetching, deleting, and recreating tags on both local and remote repositories.

Usage

Run `./recreate-tag.sh

Note

Use with caution in production environments to avoid disrupting release workflows.


TAG_NAME="v1"

git fetch --tags --prune-tags -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually force push from local but should be the same

git checkout origin/main
git tag -d $TAG_NAME
git tag v1
git push origin tag v1 -f

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is meant to be run from local (and it's forced -f), so yes, I guess it's the same 😅

@rubenruizdegauna rubenruizdegauna merged commit b59022d into main Jul 15, 2024
6 checks passed
@rubenruizdegauna rubenruizdegauna deleted the add_script_to_recreate_v1_tag branch July 15, 2024 13:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants