Tsallaka zuwa abun ciki
Justice Tech School

Annotated Tags and Describe

Annotated tags store a message and tagger. Use them for releases. git describe names a commit from the nearest tag.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
git tag -a v1.0 -m 'First release'
echo two >> a.txt && git commit -qam 'More'
git tag -l
git describe --tags | sed 's/-g.*//'

Result

v1.0
v1.0-1

Exercise

Create an annotated tag.

git tag  v1.0 -m "msg"

Quiz Test

Which tag type holds a message?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.