# from the branch you want to apply changes
# it will bring all commit changes but also stage them
git cherry-pick <commit-hash>
# it will bring all commit changes but leave them unstaged
git cherry-pick -n <commit-hash> #OR
git cherry-pick --no-commit <commit-hash>
git cherry-pick -x A^..B # without the ^, commit A will be ignored
# -x is recommended for browsable links in github or gitlab
useful to see where a commit was picked from.
git cherry-pick {commit id}