Tags and releases
Mark what shipped, attach notes and make versions traceable.
What you will be able to do
- Create annotated tags
- Push and inspect tags
- Delete a tag deliberately
A tag names a specific commit. Annotated tags carry a message, author and date, which makes them suitable for releases.
git tag -a v1.2.0 -m "Release 1.2.0"
git push origin v1.2.0
git tag
git show v1.2.0
git tag -d v1.2.0
git push origin --delete v1.2.0| Type | Contains | Use it for |
|---|---|---|
| Lightweight | A pointer to a commit | Local bookmarks |
| Annotated | Message, author and date | Releases |
Your turn
EasyPublish a release tag
Create an annotated tag v2.0.0 with a message and push it to origin.
BASH · starter
# your commands hereCheck your understanding before moving on.
Knowledge checkQuestion 1
Which tag type stores a message, author and date?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.