Git & GitHub·Team workflow

Tags and releases

Mark what shipped, attach notes and make versions traceable.

Beginner 11 min read Lesson 13 of 480 Challenge included
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.

tags.shTerminal
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
TypeContainsUse it for
LightweightA pointer to a commitLocal bookmarks
AnnotatedMessage, author and dateReleases
Your turn

Publish a release tag

Easy

Create an annotated tag v2.0.0 with a message and push it to origin.

BASH · starter
# your commands here
Check 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 in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: GitHub Actions
Lesson 13 of 480 · 0% of course