🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Rebase vs Merge and Clean History: all 15 questions

Quiz: Rebase vs Merge and Clean History · Question 4 of 15

Which is true about git merge --squash fix/coupon?

Which is true about git merge --squash fix/coupon?

  1. A.It keeps every commit from the branch
  2. B.It deletes the branch on GitHub
  3. C.It stages all the branch's changes as one change, and you then commit once
  4. D.It rewrites main's older commits
Answer & explanation

Correct answer: It stages all the branch's changes as one change, and you then commit once

Squash combines the changes; you write a single commit message.

Can you get the rest right without peeking?

Take the timed Quiz: Rebase vs Merge and Clean History quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →