Merging vs Rebasing interview questions

18 real Merging vs Rebasing questions from the Git bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Merging vs Rebasing free