Merging vs Rebasing interview questions

18 Merging vs Rebasing questions from the Git bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Merge?

Mid
  1. A.joining two divergent lines by producing a new node that has both tips as parents
  2. B.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  3. C.replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  4. D.preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes

Answer + AI explanation with Pro

2. Which term means: "joining two divergent lines by producing a new node that has both tips as parents"?

Mid
  1. A.Squash merge
  2. B.Merge
  3. C.Three-way merge
  4. D.Rebase

Answer + AI explanation with Pro

3. Which statement is correct?

Mid
  1. A.Merge — combining changes using both tips plus their common ancestor as a reference point
  2. B.Merge — joining two divergent lines by producing a new node that has both tips as parents
  3. C.Merge — the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.Merge — collapsing a feature line into one combined snapshot on the target without recording each intermediate step

Answer + AI explanation with Pro

4. What is Three-way merge?

Mid
  1. A.combining changes using both tips plus their common ancestor as a reference point
  2. B.replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  3. C.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes

Answer + AI explanation with Pro

5. Which term means: "combining changes using both tips plus their common ancestor as a reference point"?

Mid
  1. A.Merge
  2. B.Squash merge
  3. C.Rebase
  4. D.Three-way merge

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Three-way merge — joining two divergent lines by producing a new node that has both tips as parents
  2. B.Three-way merge — replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  3. C.Three-way merge — combining changes using both tips plus their common ancestor as a reference point
  4. D.Three-way merge — collapsing a feature line into one combined snapshot on the target without recording each intermediate step

Answer + AI explanation with Pro

7. What is Rebase?

Senior
  1. A.preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes
  2. B.replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  3. C.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.combining changes using both tips plus their common ancestor as a reference point

Answer + AI explanation with Pro

8. Which term means: "replaying a series of commits onto a new base, rewriting their hashes to produce a linear history"?

Senior
  1. A.Rebase
  2. B.Merge
  3. C.Conflict
  4. D.Rebase versus merge trade-off

Answer + AI explanation with Pro

9. Which statement is correct?

Senior
  1. A.Rebase — preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes
  2. B.Rebase — replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  3. C.Rebase — the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.Rebase — collapsing a feature line into one combined snapshot on the target without recording each intermediate step

Answer + AI explanation with Pro

10. What is Conflict?

Mid
  1. A.collapsing a feature line into one combined snapshot on the target without recording each intermediate step
  2. B.combining changes using both tips plus their common ancestor as a reference point
  3. C.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes

Answer + AI explanation with Pro

11. Which term means: "the situation where two lines edit the same region and the tool cannot auto-decide which version to keep"?

Mid
  1. A.Three-way merge
  2. B.Merge
  3. C.Conflict
  4. D.Squash merge

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Conflict — replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  2. B.Conflict — combining changes using both tips plus their common ancestor as a reference point
  3. C.Conflict — preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes
  4. D.Conflict — the situation where two lines edit the same region and the tool cannot auto-decide which version to keep

Answer + AI explanation with Pro

13. What is Rebase versus merge trade-off?

Senior
  1. A.combining changes using both tips plus their common ancestor as a reference point
  2. B.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  3. C.collapsing a feature line into one combined snapshot on the target without recording each intermediate step
  4. D.preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes

Answer + AI explanation with Pro

14. Which term means: "preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes"?

Senior
  1. A.Rebase versus merge trade-off
  2. B.Three-way merge
  3. C.Conflict
  4. D.Squash merge

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Rebase versus merge trade-off — replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  2. B.Rebase versus merge trade-off — combining changes using both tips plus their common ancestor as a reference point
  3. C.Rebase versus merge trade-off — preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes
  4. D.Rebase versus merge trade-off — joining two divergent lines by producing a new node that has both tips as parents

Answer + AI explanation with Pro

16. What is Squash merge?

Mid
  1. A.replaying a series of commits onto a new base, rewriting their hashes to produce a linear history
  2. B.collapsing a feature line into one combined snapshot on the target without recording each intermediate step
  3. C.the situation where two lines edit the same region and the tool cannot auto-decide which version to keep
  4. D.joining two divergent lines by producing a new node that has both tips as parents

Answer + AI explanation with Pro

17. Which term means: "collapsing a feature line into one combined snapshot on the target without recording each intermediate step"?

Mid
  1. A.Rebase
  2. B.Rebase versus merge trade-off
  3. C.Squash merge
  4. D.Conflict

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.Squash merge — joining two divergent lines by producing a new node that has both tips as parents
  2. B.Squash merge — collapsing a feature line into one combined snapshot on the target without recording each intermediate step
  3. C.Squash merge — preserving exact history with extra nodes versus a clean linear log gained by rewriting shared hashes
  4. D.Squash merge — combining changes using both tips plus their common ancestor as a reference point

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Merging vs Rebasing question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers