Git - Cherry-Pick and Advanced MergingWhich merge strategy creates a new commit even if a fast-forward merge is possible?AFast-forward mergeBSquash mergeCNo fast-forward mergeDRebase mergeCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify merge strategiesFast-forward merges move the branch pointer without creating a new commit if possible. No fast-forward forces a new commit.Step 2: Understand the differenceSquash merges combine commits into one but do not preserve history as a merge commit. Rebase rewrites history.Final Answer:No fast-forward merge -> Option CQuick Check:New commit forced = No fast-forward merge [OK]Quick Trick: Use --no-ff to force a merge commit [OK]Common Mistakes:Confusing fast-forward with no fast-forwardThinking squash creates merge commitsMixing rebase with merge commits
Master "Cherry-Pick and Advanced Merging" in Git9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Git Quizzes Cherry-Pick and Advanced Merging - Octopus merge for multiple branches - Quiz 11easy Collaboration Workflows - Why workflow agreement matters - Quiz 6medium Git Configuration and Aliases - Global vs local configuration - Quiz 4medium Rebasing - Interactive rebase (git rebase -i) - Quiz 1easy Rebasing - Squashing commits - Quiz 1easy Rebasing - Rebase vs merge mental model - Quiz 15hard Rebasing - Why rebasing creates linear history - Quiz 3easy Stashing - Dropping and clearing stashes - Quiz 1easy Tagging - Creating tags - Quiz 10hard Tagging - Creating tags - Quiz 5medium