Recall & Review
beginner
What does
git merge do in simple terms?It combines the histories of two branches by creating a new commit that joins them together, keeping all previous commits intact.
Click to reveal answer
beginner
What is the main effect of
git rebase?It moves or 'replays' your branch commits on top of another branch, creating a cleaner, linear history without merge commits.
Click to reveal answer
intermediate
How does
git merge affect commit history compared to git rebase?git merge preserves the exact history and shows branches joining, while git rebase rewrites history to look like a straight line.Click to reveal answer
intermediate
Why might you choose
git rebase over git merge?To keep a clean, easy-to-follow project history without extra merge commits, making it look like changes happened in a straight line.
Click to reveal answer
advanced
What is a risk of using
git rebase on shared branches?Rebasing rewrites history, so if others share the branch, it can cause confusion and conflicts when they try to update their copies.
Click to reveal answer
What does
git merge create when combining branches?✗ Incorrect
git merge creates a new commit that joins the histories of two branches, preserving all commits.
Which command rewrites commit history to make it linear?
✗ Incorrect
git rebase moves commits to create a straight, linear history.
Why should you be careful using
git rebase on shared branches?✗ Incorrect
Rebasing changes commit history, which can confuse others working on the same branch.
Which is a benefit of using
git merge?✗ Incorrect
git merge preserves the full history of branches, showing how they joined.
What is a visual difference in history between merge and rebase?
✗ Incorrect
Merge keeps branch structure visible; rebase makes history look like one straight line.
Explain in your own words the difference between
git merge and git rebase.Think about how the project history looks after each command.
You got /5 concepts.
When would you prefer to use
git rebase instead of git merge?Consider the goal of a tidy project history.
You got /4 concepts.