Wednesday, May 19, 2021

GIT Basics - Tagging specific commit

git status -> clean

git log --online --graph --decorate -- all -> last three commits are tagged. Refer "Comparing Tags"


I need to tag one of the commits from the list - use commit id (96a234f)

git tag {annotate} {version name} {commit id where tag should apply}

git tag -a v-0.9-beta 96a234f


we can create further tags as per need

git tag -a v-0.8-alpha 96a2324


git log --online --graph --decorate -- all -> you can see the newly created tag names are associated with those commit ids respectively in the list

No comments:

Post a Comment