Testing and Deployment

Which Git feature gives a release commit a name such as v2.1.0 without creating a separate development line?

Show the answer

Correct answerA. Tag

AWhy this is right: A tag assigns a name to a specific commit, making it suitable for marking a release.

BWhy not this: A branch represents a development line rather than a fixed release marker.

CWhy not this: A pull request proposes and reviews changes before they are integrated.

DWhy not this: A merge integrates changes from different development histories.

A tag names a specific commit and is commonly used to identify a release. A branch identifies a development line whose tip normally advances as commits are added.