does cherry pick commit code example
Example 1: git cherry pick commit
#Checkout the branch you want to apply the commit to.
git checkout master
#Cherry pick using the commit hash.
git cherry-pick <commit-hash>
#If cherry picking from a public branch use "-x" to add a standardized commit message.
git cherry-pick -x <commit-hash>
Example 2: git cherry pick many commits
# A and B are commits
# A is older than B
git cherry-pick A^..B
# to ignore A itself, run:
git cherry-pick A..B