Bird
0
0

Which of these best describes the difference between rebasing and merging?

easy📝 Conceptual Q2 of 15
Git - Rebasing
Which of these best describes the difference between rebasing and merging?
ANeither changes commit history
BMerging rewrites history; rebasing creates a new commit
CBoth rewrite history in the same way
DRebasing rewrites history; merging creates a new commit
Step-by-Step Solution
Solution:
  1. Step 1: Identify rebasing behavior

    Rebasing rewrites commits to a new base, changing their history.
  2. Step 2: Identify merging behavior

    Merging combines branches by creating a new merge commit without rewriting history.
  3. Final Answer:

    Rebasing rewrites history; merging creates a new commit -> Option D
  4. Quick Check:

    Rebase vs merge difference [OK]
Quick Trick: Rebase rewrites commits; merge adds a new commit [OK]
Common Mistakes:
  • Mixing up which command rewrites history
  • Thinking merge rewrites commits
  • Assuming both do the same thing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes