Tags and Releases
Part of the Git course
A branch like main is a moving bookmark. It points at whatever the latest commit happens to be, and the moment you commit again, it slides forward to point somewhere new. That is exactly what you want while you are working, but it is useless for one specific job: saying, permanently, "this exact commit is what we shipped as version 1.0.
Imagine two kinds of markers you could leave in a book. A bookmark tells you where you currently are, and every time you keep reading, you move it forward. A tag is different: it is more like a permanent label glued onto one specific page, one that never gets moved no matter how much further you read afterward. In Git terms, a tag is a name permanently attached to one specific commit. ...
Want to learn Git Tags and Releases in a real environment?
Click below, get a fresh Linux box with Git ready to go, and work through Tags and Releases hands-on with an AI tutor that knows your code.
Start this lessonTags and ReleasesWhat you'll learn
- Lightweight tag
- Annotated tag
- Git tag -a
- Git push --tags
- GitHub releases
Read this lesson in your language
All lessons in this course
13 lessons- 1Init and Your First Commit25 min
- 2Status, Diff, and Log25 min
- 3Branches and Merging30 min
- 4Resolving Merge Conflicts30 min
- 5Remotes: Push, Pull, Fetch30 min
- 6Stash and Cherry-pick25 min
- 7Rebasing30 min
- 8Interactive Rebase and Squashing30 min
- 9Tags and Releases20 min
- 10Branching Workflows20 min
- 11Recovering Lost Work25 min
- 12Hooks25 min
- 13Capstone: A Full Pull Request Flow40 min
