Tag
ELI5 — The Vibe Check
A tag is like a permanent bookmark on a specific commit. While branches move forward as you add commits, a tag stays put forever. It's mainly used to mark release versions like 'v1.0.0' or 'v2.3.1'.
Real Talk
Tags are references that point to specific commits and don't change. They're typically used to mark release points (v1.0, v2.0). Annotated tags include metadata (tagger, date, message) while lightweight tags are just pointers.
Show Me The Code
git tag v1.0.0
git tag -a v1.0.0 -m "First release"
git push origin --tags
When You'll Hear This
"Tag this commit as v2.0." / "Check the latest tag for the release version."
Related Terms
Commit
A commit is like pressing the save button in a video game.
Release
A release is an official versioned snapshot of your software that you hand to the world.
Semantic Versioning (SemVer)
Semantic versioning uses three numbers — MAJOR.MINOR.PATCH — where each number means something. PATCH (1.0.1) = bug fix. MINOR (1.1.