Complete the code to create a lightweight tag named 'v1.0'.
git tag [1]To create a lightweight tag, just use git tag followed by the tag name.
Complete the code to create an annotated tag named 'v2.0' with a message.
git tag [1] -m "Release version 2.0"
-a creates a lightweight tag.-m before the tag name causes errors.Use -a to create an annotated tag and -m to add a message.
Fix the error in the command to create an annotated tag 'v3.0' with a message.
git tag [1] "Release v3.0"
-m option causes the message to be ignored.-m causes errors.The correct syntax for annotated tags with a message is git tag -a tagname -m "message".
Fill both blanks to create an annotated tag 'v4.0' with the message 'Final release'.
git tag [1] [2] -m "Final release"
-a causes errors.-f (force) unnecessarily.The command needs -a for annotated tag and the tag name after it.
Fill all three blanks to create an annotated tag 'v5.0' with message 'Stable release' and push it to origin.
git tag [1] [2] -m "Stable release" && git push origin [3]
-m in the wrong place.Create the annotated tag with -a and the tag name, then push the same tag name to origin.