0
0
Gitdevops~10 mins

Creating tags in Git - Interactive Practice

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

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

Git
git tag [1]
Drag options to blanks, or click blank then click option'
Av1.0
B-a v1.0
Cpush v1.0
D-m "version 1.0" v1.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using -a or -m creates an annotated tag, not lightweight.
Trying to push the tag in the tag creation command.
2fill in blank
medium

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

Git
git tag [1] -m "Release version 2.0"
Drag options to blanks, or click blank then click option'
A-a v2.0
Bv2.0
C-m v2.0
D-am v2.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using only the tag name without -a creates a lightweight tag.
Putting -m before the tag name causes errors.
3fill in blank
hard

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

Git
git tag [1] "Release v3.0"
Drag options to blanks, or click blank then click option'
A-m v3.0
B-a v3.0
C-a v3.0 -m "Release v3.0"
D-a v3.0 -m
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the -m option causes the message to be ignored.
Placing the message without -m causes errors.
4fill in blank
hard

Fill both blanks to create an annotated tag 'v4.0' with the message 'Final release'.

Git
git tag [1] [2] -m "Final release"
Drag options to blanks, or click blank then click option'
A-a
B-m
Cv4.0
D-f
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the tag name before -a causes errors.
Using -f (force) unnecessarily.
5fill in blank
hard

Fill all three blanks to create an annotated tag 'v5.0' with message 'Stable release' and push it to origin.

Git
git tag [1] [2] -m "Stable release" && git push origin [3]
Drag options to blanks, or click blank then click option'
A-a
B-m
Cv5.0
Dv4.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using -m in the wrong place.
Pushing a different tag name than created.