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
More on Commits, branches and tags
How do you write a good commit message?BeginnerWhat is the difference between `git add .`, `git add -A` and `git add -u`?BeginnerHow do you commit only part of the changes in a file?BeginnerHow do you change the last commit message or add a forgotten file?BeginnerWhat is the difference between `git switch`, `git restore` and `git checkout`?BeginnerHow does `git describe` work and where is it useful?Intermediate