How to tag multiple commits in git

I want to create one tag for several commits (merged branches).

Can we group several commits into one tag, please help me with this.

+8
source share
3 answers

What you are trying to do is impossible. A tag, like a branch, can point to a maximum of one commit.

+6
source

we can add a tag with only one commit id git add tag -a v1.0 [commit id]

0
source

,

v1.2_b7_p0
v1.2_b7_p1
v1.2_b7_p2
v1.2_b7_p3

_pX , . :

v1.2_b7_code
v1.2_b7_docs
v1.2_b7_demo
v1.2_b7_changelog

, , .

, , . , , .

0

All Articles