Git Cherrypick Range of Commits
You can use git cherrypick
to pick a commit from one branch to another.
Sometimes it is usefull to bring a range of commits. So you can:
However, the way cherrypick works is a bit non-intuitive. The code above does not include the oldest sha, but it includes the newest sha (and everything in between).
In order to include the oldest sha, then you can make use of ^
:
The code above includes the oldest sha, the newest sha and everything in between.