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

Is it possible to delete remote tags? #2635

Closed
mark2185 opened this issue May 17, 2023 Discussed in #2633 · 5 comments · Fixed by #2738
Closed

Is it possible to delete remote tags? #2635

mark2185 opened this issue May 17, 2023 Discussed in #2633 · 5 comments · Fixed by #2738
Labels
good first issue Good for newcomers

Comments

@mark2185
Copy link
Collaborator

Discussed in #2633

Originally posted by AndrewSav May 17, 2023
I was able to figure out how to create local tags and push them, but I don't seem to be able to push a deleted local tag. Is this possible?

Also it seems deleting tags locally is futile anyway, they come back from the remote in a minute anyway... Is it possible to make it stick?

P.S. currently achieved through a custom command (eyeballed it):

  - key: 'D'
    command: "git push --delete {{ .SelectedTag.FullRefName }}"
    context: 'tags'
    stream: true
    prompts:
      - type: 'confirm'
        title: "Confirm:"
        body: "Are you sure you want to delete the tag {{.SelectedTag}}?"
@jesseduffield
Copy link
Owner

Deleting local tags is only futile if you've already pushed them. What if pressing 'd' brought up a menu that asked if you wanted to delete the local tag, delete the remote tag, or delete both? We could then use that with branches as well. With that approach we're not interfering with muscle memory.

@mark2185
Copy link
Collaborator Author

Well the menu thingy sounds nice, had me on "we could then use that with branches as well".

I'd chuck a good first issue (?), doesn't seem too wild to add two menus for that.

@jesseduffield
Copy link
Owner

Agreed

@jesseduffield jesseduffield added the good first issue Good for newcomers label May 17, 2023
@AzraelSec
Copy link
Contributor

Hey @jesseduffield can I pick this up?

@jesseduffield
Copy link
Owner

Go for it @AzraelSec !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants