0
0
Gitdevops~5 mins

Semantic versioning with tags in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is semantic versioning in Git tags?
Semantic versioning is a way to name Git tags using a format like MAJOR.MINOR.PATCH. It helps track changes clearly: MAJOR for big changes, MINOR for new features, PATCH for fixes.
Click to reveal answer
beginner
What does the tag v2.1.0 tell you about the project?
The tag v2.1.0 means the project is on major version 2, minor version 1, and patch 0. It shows new features were added since version 2.0.0, but no bug fixes yet.
Click to reveal answer
beginner
How do you create a lightweight Git tag named v1.0.0?
Use the command: git tag v1.0.0. This creates a simple tag pointing to the current commit.
Click to reveal answer
intermediate
How do annotated tags differ from lightweight tags in Git?
Annotated tags store extra info like tagger name, date, and message. Lightweight tags are just simple pointers to commits without extra data.
Click to reveal answer
beginner
What command lists all tags in a Git repository?
Use git tag to list all tags. You can see all semantic version tags this way.
Click to reveal answer
What does the PATCH number in semantic versioning represent?
ABug fixes and small improvements
BNew features added
CBig changes that break compatibility
DChanges to documentation only
Which command creates an annotated tag named v1.2.3?
Agit tag v1.2.3
Bgit create tag v1.2.3
Cgit tag -a v1.2.3 -m "Release 1.2.3"
Dgit tag --list v1.2.3
What does the tag v3.0.0 usually indicate?
APatch update
BMajor update with possible breaking changes
CMinor feature update
DPre-release version
How do you see all tags in your Git repository?
Agit show tags
Bgit list tags
Cgit tags --all
Dgit tag
Why use semantic versioning tags in Git?
ATo track changes clearly and help users know update types
BTo confuse users
CTo slow down development
DTo avoid using branches
Explain semantic versioning and how it helps in managing Git tags.
Think about how you tell a friend if a new app update is big or small.
You got /4 concepts.
    Describe the difference between lightweight and annotated Git tags and when to use each.
    Imagine writing a quick note versus a detailed letter.
    You got /4 concepts.