I've got two branches which shouldn't be directly merged together (yet). However, I need to move two different non-consecutive commits from one branch to the other. I currently have:
top-branch:
A-B-C-D
bottom-branch:
X-Y
And I want to get:
top-branch:
A-C
bottom-branch:
X-Y-B-D