How does a lightweight tag in Git differ from an annotated tag?
- Contains only a reference to a commit
- Includes additional information like a message
- Points to a branch
- Represents a merge commit
A lightweight tag in Git only contains a reference to a specific commit, while an annotated tag includes additional information such as a tagger name, email, date, and a tagging message. Annotated tags are recommended for important releases or milestones.
Loading...
Related Quiz
- A developer accidentally commits a large binary file. What Git feature should they use to remove this file from history while retaining current changes?
- During a project, two developers work on the same file and create conflicting changes. What is the best way to proceed after Git indicates a merge conflict?
- The git ______ command is used to switch branches or restore working tree files.
- A critical aspect of scaling Git for enterprise is setting up efficient ________.
- A developer is working on a feature that is based on an outdated main branch. What strategy should they use to update their branch with the latest changes from the main branch?