🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Git Workflow and Interview: all 10 questions

Quiz: Git Workflow and Interview · Question 7 of 10

What does a "squash merge" of a pull request do?

What does a "squash merge" of a pull request do?

  1. A.Deletes the pull request
  2. B.Combines all the PR's commits into one commit on main
  3. C.Merges without running tests
  4. D.Keeps every commit and adds a merge commit
Answer & explanation

Correct answer: Combines all the PR's commits into one commit on main

It keeps main's history short: one commit per change.

Can you get the rest right without peeking?

Take the timed Quiz: Git Workflow and Interview quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →