Interview Prep/Git & GitHub/Merge, rebase and cherry-pick

What does `git cherry-pick` do?

BeginnerConceptMerge, rebase and cherry-pick
Answer

It applies the change introduced by one or more existing commits onto the current branch as new commits with new IDs. It is the tool for back-porting a fix to a release branch. For merge commits you must choose the mainline parent with -m.

git cherry-pick 3fa9c21
git cherry-pick -x A^..B     # range, records origin in message
git cherry-pick -m 1 <merge-sha>
All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick