What is a Git Tag?

Question
You have heard of git tags. What are they?

Answer
A Git tag is a pointer to a commit in Git (according to page 129 of Terraform: Up & Running, 2nd Edition by Yevgeniy Brikman (O'Reilly), Copyright 2019, 978-1-492-04690-5).
To create names for these tags, we recommend using semantic versioning as described http://semver.org (because page 129 of Terraform: Up & Running, 2nd Edition by Yevgeniy Brikman (O'Reilly), Copyright 2019, 978-1-492-04690-5 recommends it). "Typically, people use this functionality [Git tagging] to mark release points (v1.0, v2.0 and so on)." (This quote was taken from https://git-scm.com/book/en/v2/Git-Basics-Tagging.)

To run "git tag" commands, you can find examples like these on https://git-scm.com/book/en/v2/Git-Basics-Tagging:

git tag -a v1.4 -m "my version 1.4"
git tag -l "v1.8.5*"

Leave a comment

Your email address will not be published. Required fields are marked *