Testing and Deployment
A team must identify the exact Git commit used for release v3.1.0 even as development continues. Which source control practice best meets this requirement?
Show the answer
Correct answerA. Create a release tag and prevent it from being moved.
AWhy this is right: A protected, unmoved tag preserves a stable association between the release name and its commit.
BWhy not this: Renaming a branch does not prevent its tip from advancing during development.
CWhy not this: A message can describe a release but does not establish a dedicated, stable release reference.
DWhy not this: The branch tip changes as future changes are merged, so it is not a fixed release reference.
A release tag identifies a specific commit; preventing tag movement preserves that association. A branch advances as commits are added, so its current tip does not provide a fixed release reference.