github cherry pick commits code example
Example 1: git cherry pick commit
git cherry-pick <commit-hash>
git cherry-pick -n <commit-hash>
git cherry-pick --no-commit <commit-hash>
Example 2: git cherry pick commit
git checkout master
git cherry-pick <commit-hash>
git cherry-pick -x <commit-hash>
Example 3: git cherry pick
git cherry-pick <commit-hash>
Example 4: how to do a pull request with one commit
git fetch origin
git checkout -b add-log-component origin/add-log-component
git checkout master
git cherry-pick COMMIT-HASH-HERE
git push origin master