Is it possible to move/delete tags on Bitbucket Cloud?
Hi Alex, welcome to the Community!
You can't remove a tag from Bitbucket after you've added it. To remove a tag, you'll have to do so from the command line. This is explained in the article Repository tags.
For reference, you can learn how to do it from the terminal by following this tutorial or this post from Stackoverflow.
Hope that helps!
Ana
Hi Ana,
Thanks for the prompt response.
Is there any way to run command line on Bitbucket Cloud?
Or, I must use Sourcetree?
Hi Alex,
The command line can not be accessed from Bitbucket. You can access it directly on your computer (some systems call it 'terminal') or if you're not familiar or comfortable with the command line, you can use a graphical interface like Sourcetree. You can learn how to remove tags in Sourcetree on the article Adding, moving and removing tags.
There is a better solution to this using SourceTree, you can use Tag-> Remove Tag(Check Remove tag from all remotes).
See attachment.
Actually, it is possible to delete a tag. This can be done from the commit's view: the tag has a gray X next to it.
The tagged commit can be found on the commits' page. It is the top-most one for the tag.
This answer is inspired by https://community.atlassian.com/t5/Bitbucket-questions/Creating-branch-from-an-old-commit/qaq-p/795260#M27589.
It doesn't have any X in my commit's view, please provide a screenshot if that's true
This is top-right on the commit's page:
Updating in reply to the question below: this is Atlassian Bitbucket v7.6.10 Server
Perhaps it is tied to the premium plan. I don't see the same options. Are you using Bitbucket Cloud or Server ?
Found a solution on stackoverflow, but not all solutions on stackoverflow work for bitbucket cloud.
this fails
git push --delete origin tagnameerror: unable to delete 'tagname': remote ref does not existerror: failed to push some refs to 'bitbucket.org:xyz.git'git --versiongit version 2.31.1
this works
git tag -d tagnameDeleted tag 'tagname' (was 83***07)git push origin :refs/tags/tagnameTo bitbucket.org:xyz.git- [deleted] tagname
This worked for me, thanks!
Worked for me as well, thanks!
It looks like you're new here. Sign in or register to get started.