git cherry-pick multiple commits
git cherry-pick $from_sha..$to_sha
Related videos on Youtube
BJ Dela Cruz 3 months
How to cherry pick a range of commits and merge into another branch
I want to cherry-pick 19 commits from one branch and apply them to another branch. All of the commits are sequential (commit 1, commit 2 ... commit 19), and the last commit is not the most recent commit (i.e. there are other commits that come after it whose changes I don't want to apply). How can I apply my changes to a branch without typing
git cherry-pickfor each commit?
g19fanatic about 10 yearsdefinitely the proper way of doing this :)
Uri almost 10 yearsCould you do
git cherry-pick HEAD..branch-name?
PDK over 4 yearsNB.
^(stackoverflow.com/a/1994491/3419541) …if you want to pick the range hash1 through hash19 (inclusive) that would be
0andriy over 3 yearsDon't remember from which version, but
git cherry-pick -<NUM_OF_COMMITS> <HASH_OF_LAST_COMMIT>works as a charm!