Intermediate Git & Version Control
Q54 / 100

What is the difference between annotated tags and lightweight tags in Git?

Correct! Well done.

Incorrect.

The correct answer is A) Annotated tags are stored as full objects in the Git database with metadata (tagger name, date, message, and optionally a GPG signature), while lightweight tags are simply a name pointing to a commit with no additional metadata

A

Correct Answer

Annotated tags are stored as full objects in the Git database with metadata (tagger name, date, message, and optionally a GPG signature), while lightweight tags are simply a name pointing to a commit with no additional metadata

Explanation

Annotated tags (created with "git tag -a") are recommended for releases since they store extra information like the tagger and date, and can be cryptographically signed, unlike lightweight tags (created with "git tag").

Progress
54/100