Cherry pick

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the git category.

Last Updated: 2024-11-21

Take most recent most from branch feature2

# Note: this doesn't grab all the commits there... just the most recent ones
git cherry-pick feature2

Cherry pick content without committing

git cherry-pick -n feature2

Cherry pick multiple commits

A must be older than B below

git cherry-pick A^..B

# in zsh, quotes are needed:
git cherry-pick 'A^..B'