You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @sraillard, thanks for opening this and sorry for the inconvenience!
GitHub Desktop doesn't support deleting tags that have already been pushed to the remote.
You're only able to delete a local tag up to the point when you push it. Deleting pushed tags is a much more complicated affair than one might think and this has to do with how Git itself is designed.
If you're curious about the technical details as to why Desktop won't let you delete a pushed tag the git tag man page has a great section on this.
On Re-tagging
What should you do when you tag a wrong commit and you would want to re-tag?
If you never pushed anything out, just re-tag it. Use "-f" to replace the old one. And you’re done.
But if you have pushed things out (or others could just read your repository directly), then others will have already seen the old tag. In that case you can do one of two things:
The sane thing. Just admit you screwed up, and use a different name. Others have already seen one tag-name, and if you keep the same name, you may be in the situation that two people both have "version X", but they actually have different "X"'s. So just call it "X.1" and be done with it.
The insane thing. You really want to call the new version "X" too, even though others have already seen the old one. So just use git tag -f again, as if you hadn’t already published the old one.
However, Git does not (and it should not) change tags behind users back. So if somebody already got the old tag, doing a git pull on your tree shouldn’t just make them overwrite the old one.
If somebody got a release tag from you, you cannot just change the tag for them by updating your own one. This is a big security issue, in that people MUST be able to trust their tag-names. If you really want to do the insane thing, you need to just fess up to it, and tell people that you messed up. You can do that by making a very public announcement saying:
Ok, I messed up, and I pushed out an earlier version tagged as X. I
then fixed something, and retagged the *fixed* tree as X again.
If you got the wrong tag, and want the new one, please delete
the old one and fetch the new one by doing:
git tag -d X
git fetch origin tag X
to get my updated tag.
You can test which tag you have by doing
git rev-parse X
which should return 0123456789abcdef.. if you have the new version.
Sorry for the inconvenience.
Does this seem a bit complicated? It should be. There is no way that it would be correct to just "fix" it automatically. People need to know that their tags might have been changed.
If you're certain that you're the only one using the repository or that no one else has fetched your tag yet you can follow the instructions in the man page to manually delete the tag on the remote.
Reacted by Crispy Computing Machine. , Andreu, nate, Cyber, Sébastien PERIN, avaness, Alethila, Tom, nicknie0117, Edvins Kravcenka and 32 more
Hi @niik, I have read and understand the point regarding moving the tags.
But, in CLI, I can do it. I think it's a kind of opiniated choice to not allow it.
Users are reponsible for what they do, having a warning is nice, preventing the action is not.
Sebastien
Reacted by Fabio Caccamo, David Smith, Cyber, Marko Ondrejička, André Kracht, Alethila, Saleh Bagheri, Khorsandi, Ajay Birla, Noah Stolk and 23 more
Reacted by Ajay Birla, Nuno Dias, Bill Smith and Adam Keenan
What kind of backwards logic is this? Let us do what we want with our repositories. We should be able to delete remote tags if we want.
Reacted by Fabio Caccamo, David Smith, Sebastian Jost, Neat Freak, Ilya Berdichevsky, Cyber, Alethila, Will, Riccardo Bonavigo, gabriels1234 and 25 more
Reacted by Crispy Computing Machine. , CosmicCoincidence, Fabio Caccamo, Sébastien PERIN, Dalton Luce and Nuno Dias
Reacted by Nuno Dias, Adam Keenan, Bill Smith and Kartik Shah
[...] Deleting pushed tags is a much more complicated affair than one might think and this has to do with how Git itself is designed.
[...]
seemingly easy if CLI can do:
git checkout [master|branch|commit]
git tag testTag
git push [origin|upstream] testTag
git tag --delete testTag #delete local tag
git push --delete [origin|upstream] testTag #delete remote tag
Reacted by Crispy Computing Machine. , Paresh Wagh, nerdCopter, brokerblocker, NotSpecific, momi, LucaKrummi, Khoa Nguyen, Karl Higgins, Jasmine Nyarch and 6 more
Reacted by brokerblocker, Genaro Camele and Nuno Dias
Reacted by nerdCopter, brokerblocker, Genaro Camele and Nuno Dias
Did it ever occur to anyone here that "Simple things should be simple" ...?
Reacted by Crispy Computing Machine. , CosmicCoincidence, Michael Hemingway, Fabio Caccamo, Edvins Kravcenka, Jasmine Nyarch, Aaron Kimbrell and Nuno Dias
crispy-computing-machine commented on Nov 12, 2021
It's a shame you don't want to add this feature, personally I think that since it can be done using the CLI, that's a good enough reason to implement it as a right-click context menu option on tagged commits.
Regarding the possible drawbacks, users are responsible for what they do with their own repositories.
Before I was able to do it with Source Tree, GitHub Desktop is much more better but now I have to do this:
git tag -d 0.1.0
git push origin :0.1.0
Reacted by nerdCopter, Neat Freak, akajester, Fabio Caccamo, Jasmine Nyarch and Nuno Dias
when viewing your repository online on github.com, there is a button for deleting a tag. Seems to work perfectly. Why is this button not available in github Desktop?
Reacted by shadowsora, Dan Sullivan, avaness, Alethila, Fabio Caccamo, Edvins Kravcenka, Jasmine Nyarch, Fynn, wpadykulaggs, Jason Gill and 4 more
I also just ran into this issue, would be helpful to be able to do it all in GitHub Desktop. What is the point if I can create tags but then have to keep the commands handy to delete them.
Maybe put the warning about local/remote tags in a dialog or warning, then let the people add/remove tags with freedom and all that brings?
A workflow that is annoying: When someone deletes a tag on github and then local fetch/sync is performed, it doesn't always remove them locally. So you have to then run the CLI locally to remove. Even when working alone on a repo this is annoying.
Basically, at minimum, if a tag is removed on github it should also auto delete it on the local repo when fetch/synced/pulled.
Reacted by Edvins Kravcenka, Jasmine Nyarch and chochem
Ran into this today. Deleted the tag on remote. I know for a fact no one has the wrong tag. But I can't remove the existing one locally.
Not only can I not remove the existing one locally - I can't re-use it on another commit, because "tag already exists". Except it really doesn't. Amazing. No other user has it, remote doesn't have it either. It's just me, locally, unable to delete my own local tag.
My tag mislabeling is not insanity.
Your UI is decision-making is insanity.
when viewing your repository online on github.com, there is a button for deleting a tag. Seems to work perfectly. Why is this button not available in github Desktop?
This actually allows a dumb but functional workaround - delete the tag online, then locally delete your whole repository and clone it again - since online you were able to delete the tag no problem, when you clone the repository back from remote, it won't have the tag any longer.
I think this is kind of silly. You can delete tags from the GitHub UI in your web browser and that's accurately reflected in the repository there. You can then reuse that same tag in a different place from the GitHub UI and the repository honors that as well.
This means your local copy in your desktop app will now be incorrect because fetching from origin won't update where that tag ended up. I think that's actually much worse than simply not allowing the local deletion.
The desktop app should support you doing anything you can do from the GitHub site.
Reacted by Fabio Caccamo, wpadykulaggs, miqrogroove, Danielius, Adam Keenan, davidsalamon and devnumber
2025 and we still cannot remove pushed tags. SourceTree can do this, TortoiseGit can do this, I bet many other apps can do this. The best one (imho) cannot, smh
Reacted by Miss Marianna Nodale, Ivan, Fabio Caccamo and Arthmoor
Activity
niik commentedon Jun 4, 2020
Hi @sraillard, thanks for opening this and sorry for the inconvenience!
GitHub Desktop doesn't support deleting tags that have already been pushed to the remote.
You're only able to delete a local tag up to the point when you push it. Deleting pushed tags is a much more complicated affair than one might think and this has to do with how Git itself is designed.
If you're curious about the technical details as to why Desktop won't let you delete a pushed tag the
git tagman page has a great section on this.If you're certain that you're the only one using the repository or that no one else has fetched your tag yet you can follow the instructions in the man page to manually delete the tag on the remote.
sraillard commentedon Jun 4, 2020
Hi @niik, I have read and understand the point regarding moving the tags.
But, in CLI, I can do it. I think it's a kind of opiniated choice to not allow it.
Users are reponsible for what they do, having a warning is nice, preventing the action is not.
Sebastien
EmeraldNova commentedon Dec 25, 2020
What kind of backwards logic is this? Let us do what we want with our repositories. We should be able to delete remote tags if we want.
nerdCopter commentedon May 4, 2021
seemingly easy if CLI can do:
montao commentedon May 7, 2021
Did it ever occur to anyone here that "Simple things should be simple" ...?
crispy-computing-machine commentedon Nov 12, 2021
git tag -l | xargs git tag -d && git fetch -t
JokerDen commentedon Jan 20, 2022
Still sad that GitHub Desktop can't delete pushed tags. SourceTree has no problem with that.
fabiocaccamo commentedon Apr 19, 2022
It's a shame you don't want to add this feature, personally I think that since it can be done using the CLI, that's a good enough reason to implement it as a right-click context menu option on tagged commits.
Regarding the possible drawbacks, users are responsible for what they do with their own repositories.
Before I was able to do it with Source Tree, GitHub Desktop is much more better but now I have to do this:
ThreeDeeJay commentedon Jun 7, 2022
tl;dr solution: https://www.sourcetreeapp.com/
simulatedScience commentedon Aug 11, 2022
when viewing your repository online on github.com, there is a button for deleting a tag. Seems to work perfectly. Why is this button not available in github Desktop?
thomasfw commentedon Aug 27, 2023
Pretty absurd. Surely it would be more appropriate to allow tag deletion but also show a warning message to the user, as has already been suggested?
bvdwalt commentedon Nov 23, 2023
I also just ran into this issue, would be helpful to be able to do it all in GitHub Desktop. What is the point if I can create tags but then have to keep the commands handy to delete them.
drawcode commentedon Dec 5, 2023
Maybe put the warning about local/remote tags in a dialog or warning, then let the people add/remove tags with freedom and all that brings?
A workflow that is annoying: When someone deletes a tag on github and then local fetch/sync is performed, it doesn't always remove them locally. So you have to then run the CLI locally to remove. Even when working alone on a repo this is annoying.
Basically, at minimum, if a tag is removed on github it should also auto delete it on the local repo when fetch/synced/pulled.
PenguinPofi commentedon Feb 1, 2024
Absolutely asinine.
Ran into this today. Deleted the tag on remote. I know for a fact no one has the wrong tag. But I can't remove the existing one locally.
Not only can I not remove the existing one locally - I can't re-use it on another commit, because "tag already exists". Except it really doesn't. Amazing. No other user has it, remote doesn't have it either. It's just me, locally, unable to delete my own local tag.
My tag mislabeling is not insanity.
Your UI is decision-making is insanity.
DenisK-Voodoo commentedon Feb 1, 2024
@PenguinPofi and what if other user push this tag? 🤔
Will you be able to pull it?
PenguinPofi commentedon Feb 1, 2024
@DenisK-Voodoo No idea. As fun as that test sounds - I just switched over to sourcetree and deleted my tag there.
wpadykulaggs commentedon Nov 27, 2024
This actually allows a dumb but functional workaround - delete the tag online, then locally delete your whole repository and clone it again - since online you were able to delete the tag no problem, when you clone the repository back from remote, it won't have the tag any longer.
Arthmoor commentedon Dec 11, 2024
I think this is kind of silly. You can delete tags from the GitHub UI in your web browser and that's accurately reflected in the repository there. You can then reuse that same tag in a different place from the GitHub UI and the repository honors that as well.
This means your local copy in your desktop app will now be incorrect because fetching from origin won't update where that tag ended up. I think that's actually much worse than simply not allowing the local deletion.
The desktop app should support you doing anything you can do from the GitHub site.
nmdias commentedon Feb 2, 2025
This logic is unnecessarily convoluted for such a simple but useful feature.
Doodys commentedon Sep 17, 2025
2025 and we still cannot remove pushed tags. SourceTree can do this, TortoiseGit can do this, I bet many other apps can do this. The best one (imho) cannot, smh
HGjuanh commentedon Feb 10, 2026
2026 and we still the same...
ElderLich commentedon Apr 9, 2026
Crazy...
OmegaHawkeye commentedon Jul 9, 2026
6 months into 2026 and my PR got closed bc it doesn't solve a needed issue.
Tbf I forgot to mention the issue immediately when creating the PR (#22482) and I didn't even know of this specific issue.
Just wanted the same functionality as SourceTree but inside the better App