How to add TAG to already fixed in Git and Bitbucket

I already committed, but skipped the TAG, is it possible to add the TAG to the already committed code, I use Git and Bitbucket . So far I have tried using git bash commands

 1. git tag "v1.0" fd5j6dj 2. `git tag -a v1.2 9fceb02 -m "Message here"` 

You will not be able to offer anything that will work

+5
source share
4 answers

You can tag it later and run git push --tags to update the tags to the remote repo, so you will never miss it. But some commands may require permission for push tags.

+8
source

Now suppose you forgot to tag the project on v1.2, which was in commit. You can add it after the fact. To mark this message, you indicate the checksum (or part of it) at the end of the line for this case 6fcub07 :

 $ git tag -a v1.2 6fcub07 

You can see that you noted the commit:

+4
source

You can tag it in the bitbucket GUI. when you go to the commit section and open the commit you want to tag, there is a tag section in the upper right corner of the page. If you press the + button, you can add the tag to the commit.

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

0
source

You can add a tag from the Bitbucket GUI. If you have a Bitbucket 4.7 server or higher.

Link: https://community.atlassian.com/t5/Answers-Developer-Questions/Tags-on-Bitbucket-server/qaq-p/523879

0
source

All Articles