git cherry-pick
command
Applies the changes from a specific commit onto the current branch without merging the entire branch.
Syntax
git cherry-pick <commit>
Example
bash
# Apply a single commit
git cherry-pick abc1234
# Apply multiple commits
git cherry-pick abc1234 def5678
# Apply range of commits
git cherry-pick abc1234^..def5678
# Cherry-pick without committing
git cherry-pick --no-commit abc1234