Apply specific commits from one branch to another with git cherry-pick for backports and fixes.
Cherry-Pick
# Apply a specific commit to current branch
git cherry-pick abc1234
# Pick multiple commits
git cherry-pick abc1234 def5678
git cherry-pick abc1234..def5678 # range
# Cherry-pick without committing
git cherry-pick --no-commit abc1234
# If conflict arises
# 1. Resolve conflicts
# 2. git add .
# 3. git cherry-pick --continue
# Abort
git cherry-pick --abort
# Useful for:
# - Backporting bug fixes to older releases
# - Applying a fix from one branch to another
# - Moving a commit that was on the wrong branch