🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Rebase vs Merge and Clean History: all 15 questions

Quiz: Rebase vs Merge and Clean History · Question 10 of 15

Which command lets you combine, reorder or reword several of your own unpushed commits?

Which command lets you combine, reorder or reword several of your own unpushed commits?

  1. A.git log --graph
  2. B.git merge --no-ff
  3. C.git rebase -i main
  4. D.git fetch --all
Answer & explanation

Correct answer: git rebase -i main

Interactive rebase lists your commits so you can mark them pick, squash, reword or drop.

Can you get the rest right without peeking?

Take the timed Quiz: Rebase vs Merge and Clean History quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →