Fixed bug in wrong branch. Need same fix in another branch. Don’t want to merge entire branch.
# Switch to target branch git checkout main # Cherry-pick specific commit from other branch git cherry-pick abc1234 # Cherry-pick multiple commits git cherry-pick abc1234 def5678 ghi9012 # Cherry-pick range git cherry-pick abc1234..def5678
Conflicts: If conflict occurs, resolve it, then git cherry-pick --continue
Abort: git cherry-pick --abort to cancel.

