← 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?
- A.Deletes the pull request
- B.Combines all the PR's commits into one commit on main
- C.Merges without running tests
- 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 →