← 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?
- A.git merge
- B.git rebase
- C.git cherry-pick <commit>
- 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 →