What is a Git tag?
a) A label for a specific commit
b) A branch of a repository
c) A commit message
d) A pull request
Answer:
a) A label for a specific commit
Explanation:
A Git tag is a label used to mark a specific commit in the repository’s history. Tags are typically used to indicate important milestones, such as software releases (e.g., v1.0).
You can create a tag using git tag tagname, which points to the current commit. Tags are helpful for referencing a specific point in the repository’s history without worrying about changes to branches.
Using tags makes it easier to manage and reference specific versions of a project, particularly when releasing software to users.