0
0
Gitdevops~10 mins

Semantic versioning with tags in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to create a new Git tag named v1.0.0.

Git
git tag [1]
Drag options to blanks, or click blank then click option'
Aversion1
Bv1.0.0
Crelease
Dtag1
Attempts:
3 left
💡 Hint
Common Mistakes
Using tag names without the 'v' prefix.
Using non-numeric or unclear tag names.
2fill in blank
medium

Complete the command to push the tag v2.1.0 to the remote repository.

Git
git push origin [1]
Drag options to blanks, or click blank then click option'
Av2.1.0
Bdevelop
Cmain
Dmaster
Attempts:
3 left
💡 Hint
Common Mistakes
Pushing a branch name instead of a tag.
Forgetting to push tags after creating them.
3fill in blank
hard

Fix the error in the command to list all tags sorted by version.

Git
git tag --sort=[1]
Drag options to blanks, or click blank then click option'
Acommitterdate
Bdate
Cname
Dversion
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'date' or 'name' which do not sort by semantic version.
Misspelling the sort option.
4fill in blank
hard

Fill both blanks to create an annotated tag with message 'Release 3.0.0'.

Git
git tag -a [1] -m [2]
Drag options to blanks, or click blank then click option'
Av3.0.0
B"Release 3.0.0"
C"Release 3.0"
Dv3
Attempts:
3 left
💡 Hint
Common Mistakes
Using lightweight tags without messages.
Forgetting quotes around the message.
5fill in blank
hard

Fill all three blanks to delete a local tag and then delete it from the remote.

Git
git tag -d [1] && git push origin :refs/tags/[2] && git fetch --prune origin [3]
Drag options to blanks, or click blank then click option'
Av1.2.3
Bv2.0.0
Dv3.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using different tag names in each command.
Forgetting to delete the tag remotely.