Skills101
← All practice quizzes

Quiz: Rebase vs Merge and Clean History

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

What rebase really does to your commits, when to merge and when to rebase, squash merges, fast-forward-only merges, cleaning up commits before a pull request, force-with-lease and cherry-pick.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    After git rebase main, why do your branch's commits have new ids?

  2. Question 2

    What is the golden rule of rebasing?

  3. Question 3

    What does git merge --ff-only feature/cart do if main and the feature have diverged?

  4. Question 4

    Which is true about git merge --squash fix/coupon?

  5. Question 5

    Which GitHub merge button puts exactly one new commit on main for the whole pull request?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →