Git & GitHub Interview Question #61
What is a Git tag?
Undo & Recovery, Tags, Forks, Pull Requests & Code Review Mid-Level Intermediate
Quick Interview Answer
A Git tag is a named reference commonly used to mark an important point in repository history, such as a release version. Unlike a normal branch, a tag is generally intended to remain fixed rather than move as new commits are created.
Detailed Explanation
A Git tag is a named reference commonly used to mark an important point in repository history, such as a release version. Unlike a normal branch, a tag is generally intended to remain fixed rather than move as new commits are created.
Tags are often used for versions such as v1.0.0 so a particular released commit can be found reliably.
Code Example
git tag v1.0.0
git tag
git show v1.0.0