Gitflow
🏷️Tag v1.2.3 ProperlyEasy+350 XP
Workshop
Scenario reference

Tag v1.2.3 Properly: the situation, step by step

The situation

Release engineer asked: 'Tag the current main as v1.2.3, signed and annotated, then push the tag.'

Annotated tags carry author + date + message. Lightweight tags are just refs.

Easy · 2 steps · +350 XP

What you will practice

This scenario walks through 2 steps, in order:

  1. 01Create the annotated tag
  2. 02Push the tag to origin
Reveal the step-by-step commands

Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.

  1. 1. Create the annotated tag
    git tag -a v1.2.3 -m "Release 1.2.3"
  2. 2. Push the tag to origin
    git push origin v1.2.3

Key takeaway

Always annotate releases (-a). Lightweight tags are for personal markers.