Complete the code to create a lightweight tag named 'v1.0' on the current commit.
git tag [1]Using git tag v1.0 creates a lightweight tag named 'v1.0' on the current commit.
Complete the code to create an annotated tag 'v2.0' with the message 'Release version 2.0'.
git tag [1] v2.0 -m "Release version 2.0"
The -a option creates an annotated tag, which includes a message and metadata.
Fix the error in the command to tag commit 'abc123' with tag 'v3.0'.
git tag v3.0 [1]
To tag a specific commit, provide the commit hash directly after the tag name.
Fill both blanks to create an annotated tag 'v4.0' on commit 'def456' with message 'Version 4 release'.
git tag [1] v4.0 [2] -m "Version 4 release"
Use -a to create an annotated tag and specify the commit hash after the tag name.
Fill all three blanks to delete a tag named 'v5.0' both locally and remotely (remote named 'origin').
git tag -d [1] && git push [2] :refs/tags/[3]
First delete the local tag with git tag -d v5.0, then delete the remote tag by pushing an empty reference to it.