Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

I have the following repository layout:

master branch (production)



What I want to achieve is to cherry-pick a range of commits from the working branch and merge it into the integration branch. I pretty new to git and I can't figure out how to exactly do this (the cherry-picking of commit ranges in one operation, not the merging) without messing the repository up. Any pointers or thoughts on this? Thanks!

1 Answer

0 votes
by (50.2k points)

When it comes to a range of commits, cherry-picking was not practical.

git cherry-pick" learned to pick a range of commits

(e.g. "cherry-pick A..B" and "cherry-pick --stdin"), so did "git revert"; these do not support the nicer sequencing control "rebase [-i]" has, though.

Browse Categories