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

An option to delete both local and remote tag at once #4203

Closed
AndrewSav opened this issue Jan 23, 2025 · 2 comments · Fixed by #4217
Closed

An option to delete both local and remote tag at once #4203

AndrewSav opened this issue Jan 23, 2025 · 2 comments · Fixed by #4217
Labels
enhancement New feature or request

Comments

@AndrewSav
Copy link
Contributor

AndrewSav commented Jan 23, 2025

Is your feature request related to a problem? Please describe.
Sometimes you create and push a tag only to discover that your Github Action build/release fails beause of some ci/cd issue. When you fix the issue, you want to delete the old tag and re-apply it on the top of the fix commit. Currently you need to do it twice, once for remote and once for local. You also need to do it in the correct order.

Describe the solution you'd like
Add an new option in the tag delete dialog to delete both local and remote tags in one go.

Describe alternatives you've considered
N/A

Additional context
Similar feature for branches was recently implemented #4108 #3916

@AndrewSav AndrewSav added the enhancement New feature or request label Jan 23, 2025
@AndrewSav AndrewSav changed the title An option to delete both local and remote branch at once An option to delete both local and remote tag at once Jan 23, 2025
@AnvarU
Copy link
Contributor

AnvarU commented Jan 26, 2025

Hello, @stefanhaller
I was looking through issues to try and resolve them and found this enhancement rather interesting and, maybe, a good place where I can start. And since no one answered here, I would like to give this issue a try and create a pull request.
Do you think this enhancement is worth it? If yes, I will go through the contributing guidelines and create a PR:)

@jesseduffield
Copy link
Owner

I think such an option makes sense, given that we support it on branches. One difference with tags is that you'll still need to prompt the user for which remote to delete the tag from given that tags don't have a concept of a tracking branch like how branches do.

So feel free to raise a PR for this @AnvarU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants