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

What does `cherry-pick -x` add and why is it useful?

IntermediateConceptMerge, rebase and cherry-pick
Answer

It appends (cherry picked from commit <sha>) to the message. On a maintenance branch this gives auditors and future engineers a pointer back to the original fix and helps tools detect duplicates.

All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick