Git

Cherry Pick

Multiple Commits in Sequence

To cherry-pick all the commits from commit with sha A to commit with sha 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
  • A should be older than B, or A should be from another branch.
  • On Windows, it should be A^^..B as the caret needs to be escaped, or it should be "A^..B"~ (with double quotes).

References: