git cherry pick do code example
Example: 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>