Recall & Review
beginner
What is a tag in Git?
A tag in Git is a label that points to a specific commit. It is often used to mark release points like versions (e.g., v1.0).
Click to reveal answer
beginner
How do you create a lightweight tag in Git?
Use the command
git tag <tagname>. This creates a simple tag pointing to the current commit without extra information.Click to reveal answer
intermediate
What is the difference between a lightweight tag and an annotated tag?
A lightweight tag is just a name for a commit. An annotated tag stores extra info like the tagger's name, date, and a message.
Click to reveal answer
beginner
How do you create an annotated tag with a message?
Use
git tag -a <tagname> -m "message". This creates a tag with extra info and a message.Click to reveal answer
beginner
How can you push tags to a remote repository?
Use
git push origin <tagname> to push a specific tag or git push origin --tags to push all tags.Click to reveal answer
Which command creates a lightweight tag named 'v1.0'?
✗ Incorrect
The command 'git tag v1.0' creates a lightweight tag named 'v1.0'.
What extra information does an annotated tag include?
✗ Incorrect
Annotated tags include the tagger's name, date, and a message.
How do you push all local tags to the remote repository?
✗ Incorrect
The command 'git push origin --tags' pushes all local tags to the remote.
Which command creates an annotated tag with a message?
✗ Incorrect
Use 'git tag -a v1.0 -m "Release version 1.0"' to create an annotated tag with a message.
What does a tag in Git usually mark?
✗ Incorrect
Tags usually mark a specific commit, often used for releases.
Explain how to create and push an annotated tag in Git.
Think about commands for creating tags with messages and sending them to remote.
You got /2 concepts.
Describe the difference between lightweight and annotated tags in Git.
Consider what extra details are stored with annotated tags.
You got /2 concepts.