30 quizzes
Create an annotated tag for the current commit with a message describing a release
git tag -a v2.0.0 - "Release v2.0.0"Click an option to fill the blank:
Create a lightweight tag on the current commit to mark an internal test build
git test-build-2025-01-01Click an option to fill the blank:
Send a single release tag named v1.2.0 to the remote named origin so your team can use it
git push origin Click an option to fill the blank:
Remove an incorrect local tag called v0.9.0 from your repository
git tag - v0.9.0Click an option to fill the blank:
Check out the code exactly as it was when you created the v1.0.0 release tag
git v1.0.0Click an option to fill the blank:
Why are annotated tags generally preferred for production releases?
Which command pushes all locally created tags to the remote named origin?
You need to remove a mistaken tag v3.0.0 from the shared remote. What must be true before you run the remote deletion command?
After running git checkout v1.0.0, what is the main risk if you start committing immediately?
In Semantic Versioning, which change should trigger a MAJOR version bump?
Order the steps to create, annotate, and push a new release tag v1.5.0 for the current main branch state.
Drag and drop to reorder, or use the arrows.
Order the steps to fix a wrong remote tag v2.0.0 by repointing it to the latest main and sharing it.
Drag and drop to reorder, or use the arrows.
Order the steps to inspect an old release by tag and then safely continue work from a new branch.
Drag and drop to reorder, or use the arrows.
Order the steps to prepare a pre-release using Semantic Versioning and tag it.
Drag and drop to reorder, or use the arrows.
Assume your current directory is a Git repo with a single tag v1.0.0 on the current commit. What is the exact output of this command?
1git tagYou created an annotated tag v2.3.1 with message "Release 2.3.1". What single line does this command print?
1git show -s --format=%D v2.3.1You are currently on branch main. What single line will this command output?
1git describe --tags --exact-matchYou have an annotated tag v1.0.0 on commit abc1234. What is the single-line output of this command?
1git rev-parse v1.0.0^{commit}You want to create a v1.0.0 release tag on main and push it. Which line is incorrect?
Click on the line(s) that contain the bug.
git checkout maingit pull origin maingit tag v1.0.0 -m "Release v1.0.0"git push origin v1.0.0You tried to delete a tag v0.1.0 locally and on origin. Identify the incorrect command.
Click on the line(s) that contain the bug.
git tag -d v0.1.0git push origin v0.1.0 --deletegit tagYou want to inspect the commit tagged v1.2.3. Find the incorrect line.
Click on the line(s) that contain the bug.
git fetch --tagsgit checkout -b v1.2.3git show v1.2.3Match each Git tag command with its purpose.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each Semantic Version segment with the type of change.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each tag-related concept with the best description.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Complete the commands to delete a mistaken local tag and then delete it from origin.
git tag - old-taggit push origin -- old-tagClick an option to fill blank 1:
Complete the commands to create and push an annotated tag v3.1.0 with a release message.
git tag - v3.1.0 -m "Release v3.1.0"git push v3.1.0Click an option to fill blank 1:
Complete the commands to list and check out a tag that matches v2.*.
git tag - "v2.*"git checkout Click an option to fill blank 1:
Select the line that shows the tag name pointing to the commit.
Click on the line to select.
commit 4f2c9a1b7e3f9d6c5b8a1e2d3c4b5a697887766Author: Dev Example <dev@example.com>Date: Mon Nov 4 10:20:30 2024 +0000 tag v1.4.0 Release v1.4.0Select the line that indicates you are in a detached HEAD state at tag v2.0.0.
Click on the line to select.
HEAD detached at v2.0.0nothing to commit, working tree cleanSelect the line that contains the Semantic Version tag for the latest release.
Click on the line to select.
hotfix-temp v1.9.0-rc.1* v2.0.0 v2.1.0-beta.1