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

What does git cherry-pick <id create?

What does git cherry-pick <id> create?

  1. A.A branch pointing to that commit
  2. B.A new commit on your branch with the same change as the picked commit
  3. C.A copy of the whole other branch
  4. D.A tag named after the commit
Answer & explanation

Correct answer: A new commit on your branch with the same change as the picked commit

The new commit has a different id because its parent is different.

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 →