git cherry pick multiple 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 many commits
git cherry-pick A^..B
git cherry-pick A..B
Example 3: 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
Example 4: git cherry pick multiple commits
git cherry-pick A^..B