How can I add Git tags in Bitbucket?

GitTagsBitbucket

Git Problem Overview


I'm hosting my codes on Bitbucket using Git. My local client is EGit (eclipse plugin). I created a tag locally (Team -> Advanced -> Tag) and then pushed it to remote repository. But when I open my repository page, I can't find tags there. I'm pretty sure the tag can be seen locally.

I'm not a Git expert. But it seems to me there are several types of tags in Git. Does Bitbucket only show certain types of tags?

Git Solutions


Solution 1 - Git

Did you click the button "Add All Tags Spec" in Push Wizard in Eclipse? If not, try it. Or if you have access to console version of git just perform:

git push --tags

Solution 2 - Git

You can also add the tag directly in the Bitbucket UI. Look at Commits, choose a specific commit and then in the details on the right side of the page, click the +-button after No tags.

enter image description here

https://confluence.atlassian.com/bitbucket/repository-tags-321860179.html

Solution 3 - Git

This documentation indicates that a tag could be created. Based on that information the following command was constructed:

git tag --annotate 1.0.0 --message "Initial version of some app"

and pushed by issuing:

git push origin 1.0.0

Once pushed, the tag could be downloaded by navigating to https://bitbucket.org/<username>/<project>/downloads?tab=tags

Solution 4 - Git

If you don't know where to look it will take ages to find the button in the gui.

In the bitbucket gui you can add a tag by browsing to commits. When you open the commit you want to tag there is a "tags" section in the top right of the page. Just below where the branch is displayed. If you click the + button you can tag your commit.

We are running the following version: Atlassian Bitbucket v4.8.3

Solution 5 - Git

This is what I had to do, but it seems awfully longwinded. Does anyone know a quicker approach?

rt click on tag under the git repository view. Push Tags, choose remote repo, choose target ref name (ctrl-space) to be refs/heads/master. Select finish.
On the results screen, Select configure select advanced, select add all tags spec, select "finish". This creates a ref mappings in the configure push page with refs/tags/:refs/tags/. Now hit save and push.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGeorgie PorgieView Question on Stackoverflow
Solution 1 - Git4ndrewView Answer on Stackoverflow
Solution 2 - GitOgglasView Answer on Stackoverflow
Solution 3 - Git030View Answer on Stackoverflow
Solution 4 - GitBrian van RooijenView Answer on Stackoverflow
Solution 5 - GitcgullView Answer on Stackoverflow