Ad space (banner)
🌿Git Lessons
Lesson 15 / 59

Marking Releases with git tag

This lesson covers marking releases with git tag. It's for anyone searching "git tag usage."

git tag attaches a name (a tag) — like "version 1.0" — to a specific commit. Use it to mark important points, such as a release moment.

In Try It, run git tag v1.0. The current commit gets a tag named v1.0, letting you jump straight back to that exact point in the code later using the tag.

A common early mistake is confusing branches with tags — a branch always keeps pointing at the latest commit, while a tag stays fixed on one specific commit; the two play genuinely different roles. In real teams, tagging every product version means you can always return to the exact code at any past release.

Git
Try it (type this into the pseudo terminal)
git tag v1.0

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)