0
0
Gitdevops~5 mins

Creating tags in Git - Quick Revision & Summary

Choose your learning style9 modes available
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'?
Agit create tag v1.0
Bgit tag -a v1.0 -m "version 1.0"
Cgit tag v1.0
Dgit push tag v1.0
What extra information does an annotated tag include?
ATagger name, date, and message
BRemote repository URL
COnly the tag name
DCommit hash only
How do you push all local tags to the remote repository?
Agit push origin --tags
Bgit push origin --all
Cgit push tags
Dgit push origin tags
Which command creates an annotated tag with a message?
Agit tag v1.0
Bgit tag -a v1.0 -m "Release version 1.0"
Cgit tag -m v1.0
Dgit tag --push v1.0
What does a tag in Git usually mark?
AA file change
BA branch
CA remote repository
DA specific commit, often a release
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.