git cherry pick commit
# 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 multiple commits
To cherry-pick all the commits from commit A to commit B (where A is older than B), run: git cherry-pick A^..B If you want to ignore A itself, run: git cherry-pick A..B
Source: stackoverflow.com
cherry pick multiple commits
Let's say the history is A-B-C-D-E-F-G, and you'd like to cherry-pick C-D-E-F. any of the following will work git cherry-pick B..F or git cherry-pick C^..F or git cherry-pick C D E F