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.
More on Merge, rebase and cherry-pick
What is the difference between a fast-forward merge and a merge commit?BeginnerHow does a three-way merge work?IntermediateWhat does `git rebase` actually do?IntermediateMerge versus rebase: how do you decide?IntermediateWhat are squash merge, merge commit and rebase-and-merge on GitHub?IntermediateWhy does a squash-merged branch show as unmerged to `git branch --merged`?Intermediate