Interview Prep/Git & GitHub/Commits, branches and tags

What is the difference between lightweight and annotated tags?

BeginnerConceptCommits, branches and tags
Answer

A lightweight tag is just a ref to a commit. An annotated tag is a full object with tagger, date, message and optional GPG/SSH signature, and it is what git describe and releases should use. Tags are not pushed by default.

git tag -a v1.4.0 -m "Release 1.4.0"
git push origin v1.4.0
git push origin --tags
All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags