🎙 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 7 of 15

You need one bug-fix commit from another branch, not the whole branch. Which command?

You need one bug-fix commit from another branch, not the whole branch. Which command?

  1. A.git merge
  2. B.git rebase
  3. C.git cherry-pick <commit>
  4. D.git stash
Answer & explanation

Correct answer: git cherry-pick <commit>

cherry-pick re-applies one commit's change on your current branch.

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 →