I have two branches, let's say branch a and b, I would like to apply some changes from b to a.

Note that I use magit-diff to show the differences between the two branches. Then I would like to apply some changes pointed out by magit-diff from b to a.

So, could please tell me how should I do this. Or is there better ways.

1 Answer 1


Put the cursor on the change in question and press a for "apply". Also see Staging and Unstaging and Applying in the manual.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.