Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tag multiple commits in git

Tags:

git

github

I want to create a single tag for multiple commits(merged branches).

Can we group multiple commits to a single tag , please help me on this.

like image 588
Hare Ram Avatar asked Apr 06 '15 13:04

Hare Ram


People also ask

Can a tag have multiple commits?

A tag, like a branch, can only point to at most one commit.

Can we tag the commits in git?

In order to create a Git tag for a specific commit, use the “git tag” command with the tag name and the commit SHA for the tag to be created. If you want to create an annotated tag for a specific commit, you can use the “-a” and “-m” options we described in the previous section.

How do I label a commit in git?

From the main menu, choose Git | New Tag. In the Tag dialog that opens, under Git Root, select the path to the local repository in which you want to tag a commit, and specify the name of the new tag. In the Commit field, specify the commit that you want to tag.


1 Answers

What you are trying to do is not possible. A tag, like a branch, can only point to at most one commit.

like image 57
David Deutsch Avatar answered Oct 10 '22 18:10

David Deutsch