0
0
Gitdevops~20 mins

Semantic versioning with tags in Git - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Semantic Versioning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Identify the output of a semantic version tag listing command
You run the command git tag --list 'v1.*' in a repository with these tags: v1.0.0, v1.2.3, v2.0.0, v1.10.0. What is the output?
Git
git tag --list 'v1.*'
A
v1.0.0
v1.10.0
v1.2.3
Bv2.0.0
C
v1.0.0
v1.2.3
v2.0.0
D
v1.0.0
v1.2.3
Attempts:
2 left
💡 Hint
The pattern 'v1.*' matches tags starting with 'v1.' exactly.
🧠 Conceptual
intermediate
1:30remaining
Understanding semantic versioning tag meaning
In semantic versioning, what does the tag v2.3.0 indicate about the software compared to v2.2.5?
AA major update with breaking changes
BA pre-release version
CA patch update with only bug fixes
DA minor update with new features but backward compatible
Attempts:
2 left
💡 Hint
Semantic versioning format is MAJOR.MINOR.PATCH.
🔀 Workflow
advanced
2:00remaining
Create a new semantic version tag for a patch update
You have a repository with the latest tag v1.4.2. You fixed a bug and want to create a new patch version tag. Which command correctly creates the new tag v1.4.3 and pushes it to origin?
Agit push origin v1.4.3 && git tag v1.4.3
Bgit tag v1.4.3 && git push origin v1.4.3
Cgit tag -a v1.4.3 -m 'Patch update' && git push origin v1.4.3
Dgit tag v1.4.3 -m 'Patch update' && git push origin v1.4.3
Attempts:
2 left
💡 Hint
Annotated tags include a message and are pushed explicitly.
Troubleshoot
advanced
1:30remaining
Troubleshoot missing semantic version tags after clone
You cloned a repository but git tag shows no tags. What is the most likely reason?
AThe repository has no tags at all
BTags are not fetched by default during clone
CTags are stored in a separate branch
DYou need to run 'git init' after clone
Attempts:
2 left
💡 Hint
Tags are references that may not be fetched automatically.
Best Practice
expert
2:00remaining
Choose the best semantic version tag for a breaking change
You made a change that breaks backward compatibility in your software currently at v3.5.1. Which tag should you create next following semantic versioning?
Av4.0.0
Bv3.6.0
Cv3.5.2
Dv3.5.1-beta
Attempts:
2 left
💡 Hint
Major version changes indicate breaking changes.