🔀Git Tag
Also known as Tag, Release Tag
A fixed name on one commit. It often marks a release, like v1.0.
Think of it like
Think of it like a name tag on a gift. It marks one box so you can find it later.
Example
Lucy tags the commit she ships as v1.0. When a bug report comes in, she checks out v1.0 to see the exact code users have.
Why it matters
Tags tie a version number to the exact code behind it. Bug reports and rollbacks depend on that link.
Definition
Example code
console
$ git tag v1.0
$ git tag
v1.0Common mistake
Key takeaways
- 1Fixed in place. A tag never moves.
- 2Marks releases. Names like v1.0 or v2.3.1.
- 3Push it too. Tags are not sent by default.