← 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?
- A.It keeps every commit from the branch
- B.It deletes the branch on GitHub
- C.It stages all the branch's changes as one change, and you then commit once
- 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 →