Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

RELEASING.md: Add not on how to remove an incorrect tag #4114

Merged
merged 2 commits into from
Jan 11, 2025

Conversation

sxa
Copy link
Member

@sxa sxa commented Jan 10, 2025

Hopefully self-explanatory. I had to do this during the January 2024 release so figured it's be useful to others to have this in the guide ;-)

@github-actions github-actions bot added the documentation Issues that request updates to our documentation label Jan 10, 2025
Note: If you make a mistake with a tag you have already pushed you can undo it with:
```bash
git tag --delete jdk-1.2.3-wrongname
git git push origin :jdk-1.2.3-wrongname
Copy link
Contributor

@Haroon-Khel Haroon-Khel Jan 10, 2025

Choose a reason for hiding this comment

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

Should this say
git push origin jdk-1.2.3-rightname?

Copy link
Member Author

Choose a reason for hiding this comment

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

No - the : specifically means "delete in the origin repository on github whereas the first command just deletes it on your local file system. Both are needed, and it doesn't replace the need to run the original commands to recreate and push the correct tag.

You can also use

git push --delete origin jdk-1.2.3-wrongname

instead of the : version - I could change it to that on the basis that it's probably clearer if you think that would be better (I just personally use : because it's shorter!)

Copy link
Member Author

Choose a reason for hiding this comment

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

(Noting that you can also use -d as a shortened version of --delete but my gut feel is that in this document the longer one is clearer)

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you meant to repeat git in git git push ....
Also this adds a "note", not a "not.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see this has already been merged but I'll get a follow on to remove the duplicate git. Thanks.

Signed-off-by: Stewart X Addison <[email protected]>
@karianna karianna requested a review from Haroon-Khel January 11, 2025 06:26
@smlambert
Copy link
Contributor

Committers should also be able to delete tags from a browser view
Screenshot 2025-01-11 at 8 50 03 AM

@karianna karianna merged commit 726afc2 into adoptium:master Jan 11, 2025
10 checks passed
@sxa sxa mentioned this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues that request updates to our documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants