How to merge git tag on a branch

I am trying to find the syntax for merging a tagged commit with another branch. I suppose this is straightforward, but my unsuccessful search attempts do not find it.

+126
git-merge git-tag
Jun 11 '13 at 18:47
source share
2 answers

Do you mean this?

git checkout destination_branch git merge tag_name 
+216
Jun 11 '13 at 19:44
source share

Remember that before merging you need to update the tag, it is very different from the branches ( git pull origin tag_name will not update your local tags), so you need the following command:

 git fetch --tags origin 

Then you can execute git merge tag_name to merge the tag onto the branch.

+78
Aug 13 '14 at 18:32
source share



All Articles