0
0
Gitdevops~10 mins

Lightweight vs annotated tags in Git - Interactive Practice

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

Complete the command to create a lightweight tag named 'v1.0'.

Git
git tag [1] v1.0
Drag options to blanks, or click blank then click option'
A-a
B-l
C-m
D(no flag needed)
Attempts:
3 left
💡 Hint
Common Mistakes
Using -a creates an annotated tag, not lightweight.
Using -m requires a message, which lightweight tags don't have.
2fill in blank
medium

Complete the command to create an annotated tag named 'v2.0' with a message.

Git
git tag [1] v2.0 -m "Release version 2.0"
Drag options to blanks, or click blank then click option'
A-l
B-a
C-f
D(no flag needed)
Attempts:
3 left
💡 Hint
Common Mistakes
Using -l creates a lightweight tag, not annotated.
Forgetting the -a option means no message can be added.
3fill in blank
hard

Fix the error in the command to create an annotated tag with a message.

Git
git tag -a v3.0 [1] "Release version 3.0"
Drag options to blanks, or click blank then click option'
A-m
B-l
C-f
D(no flag needed)
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the -m option causes the message to be missing.
Using -l is incorrect for annotated tags.
4fill in blank
hard

Fill both blanks to create an annotated tag 'v4.0' with a message and push it to origin.

Git
git tag [1] v4.0 [2] "Release v4.0"
git push origin v4.0
Drag options to blanks, or click blank then click option'
A-a
B-m
C-f
D-d
Attempts:
3 left
💡 Hint
Common Mistakes
Using only one option misses either annotation or message.
Using -f forces overwrite, which is not needed here.
5fill in blank
hard

Fill all three blanks to list all tags, show details for 'v2.0', and delete the lightweight tag 'v1.0'.

Git
git tag [1]
git show [2]
git tag -d [3]
Drag options to blanks, or click blank then click option'
A-l
Bv2.0
Cv1.0
D-a
Attempts:
3 left
💡 Hint
Common Mistakes
Using -a to list tags is incorrect.
Deleting an annotated tag requires the same command as lightweight.