Pick the focus fix from the perbaikan ribbon onto main at Mr. Harun’s studio: what photo turns up on main, and with what number? When a pick clashes, picks in…
Why it matters
A cherry-pick brings one fix to a release branch without the rest. Once you know it copies a change (it does not move a commit), you see why the number is new, why context can clash, and why picking and then merging shows the same change twice.
The key idea
A cherry-pick copies a change, it does not move a photo
Common mistakes
Does a cherry-pick move or copy? It copies. The original stays on its branch; a new commit with the same change and message appears at the destination, with a different SHA since its parent differs.
The same commit shows up twice after a cherry-pick and a merge The merge brings the original while its copy is already there. Pick only commits that will not be merged, or just merge without picking.
A cherry-pick conflicts halfway Settle the file, git add, then git cherry-pick --continue. Or git cherry-pick --abort to go back. Conflicts often come from context: pick its predecessor first.
Try it in this playground
Pick one change onto main A new photo, a new number, the same change.
Pick until the context clashes The line next to it differs on main.
Finish with --continue Settle, git add, then git cherry-pick --continue.
Pick the gold frame with no clash Pick the glossy paper first, then the gold frame.