Last Updated: January 3, 2026
29 quizzes
Start combining changes from the branch 'feature-login' into the currently checked-out branch
git feature-loginClick an option to fill the blank:
Prevent Git from creating a merge commit when merging 'feature-api' into the current branch, only allowing a fast-forward
git merge feature-apiClick an option to fill the blank:
Begin a squash merge of branch 'feature-payment' into the current branch without creating the commit automatically
git merge feature-paymentClick an option to fill the blank:
Abort an in-progress merge and return the working tree to the state before the merge started
git merge Click an option to fill the blank:
Use a specific merge strategy to combine 'feature-a' and 'feature-b' into the current branch in a single operation
git merge feature-a feature-bClick an option to fill the blank:
In a fast-forward merge, what happens to the target branch?
Which situation guarantees that Git will perform a three-way merge instead of a fast-forward?
During a merge conflict, what do the lines between ======= and >>>>>>> typically represent?
What is a key advantage of using a squash merge when integrating a feature branch?
Which merge strategy is Git's default when merging two branches?
Order the steps to perform a standard three-way merge of a feature branch into main when both branches have new commits.
Drag and drop to reorder, or use the arrows.
Order the steps to perform a squash merge of 'feature-report' into 'main'.
Drag and drop to reorder, or use the arrows.
Order the steps to safely abort a problematic merge and start a fresh merge into the correct target branch.
Drag and drop to reorder, or use the arrows.
Order the steps to resolve a simple merge conflict using a text editor.
Drag and drop to reorder, or use the arrows.
You are currently on branch 'feature-xyz'. What single line of output will this command show?
1git branch --show-currentYou run a merge that results in conflicts. What will this command print as a single line?
1git status --short --branch | head -n 1Immediately after starting a merge of 'feature-api' into 'main' with no conflicts yet resolved, what branch relationship will Git show?
1git for-each-ref --format='%(refname:short)' --points-at=HEADIdentify the incorrect command in this attempt to resolve a merge conflict and complete the merge.
Click on the line(s) that contain the bug.
git statusgit add conflicted-file.jsgit merge main -m "Resolve conflicts"git statusFind the incorrect command in this workflow intended to perform a fast-forward merge of 'feature-analytics' into 'main'.
Click on the line(s) that contain the bug.
git checkout maingit pull origin maingit merge --no-ff --ff-only feature-analyticsgit push origin mainIdentify the problematic command in this attempt to abort a merge and discard local merge changes.
Click on the line(s) that contain the bug.
git statusgit reset --hard --abortgit statusgit merge feature-cleanupMatch each merge-related command with its primary purpose.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each merge strategy with the scenario it best fits.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each conflict-related command with what it accepts or selects during a merge.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Complete the commands to resolve conflicts using a mergetool, then finish the merge.
git statusgit ___git add app.jsgit commit ___Click an option to fill blank 1:
Complete the commands to perform a fast-forward-only merge of 'feature-docs' into 'main'.
git checkout maingit pull origin maingit merge ___ feature-docsClick an option to fill blank 1:
Complete the commands to start and then abort a merge from 'feature-refactor'.
git merge ___git merge ___Click an option to fill blank 1:
Select the line that indicates a merge conflict is currently in progress.
Click on the line to select.
On branch mainYou have unmerged paths. (fix conflicts and run "git commit") (use "git merge --abort" to abort the merge) Unmerged paths: (use "git add <file>..." to mark resolution) both modified: src/index.jsClick the line that shows which file is currently in conflict.
Click on the line to select.
On branch mainYou have unmerged paths. (fix conflicts and run "git commit") Unmerged paths: (use "git add <file>..." to mark resolution) both modified: README.mdSelect the line that shows the automatic merge commit message template after a successful three-way merge (before you edit it).
Click on the line to select.
Merge branch 'feature-xyz' into main # Please enter a commit message to explain why this merge is necessary,# especially if it merges an updated upstream into a topic branch.# Lines starting with '#' will be ignored, and an empty message aborts the commit.