Bird
0
0

After running git merge --squash feature, what must you do to complete the merge?

medium📝 Troubleshoot Q7 of 15
Git - Cherry-Pick and Advanced Merging
After running git merge --squash feature, what must you do to complete the merge?
ARun <code>git commit</code> to create a single commit
BRun <code>git merge --continue</code>
CDelete the <code>feature</code> branch
DRun <code>git rebase feature</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand squash merge behavior

    Squash merge applies changes but does not create a commit automatically.
  2. Step 2: Complete the merge

    You must manually run git commit to finalize the combined changes as one commit.
  3. Final Answer:

    Run git commit to create a single commit -> Option A
  4. Quick Check:

    Squash merge requires manual commit [OK]
Quick Trick: After squash merge, always commit manually [OK]
Common Mistakes:
  • Expecting automatic commit after squash
  • Using git merge --continue incorrectly
  • Deleting branches prematurely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes