got cherry-pick 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
git cherry-pick <commit-hash>