Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create patch from multiple Git commits in IDEA?

I am using Git with IntelliJ IDEA 12.1, and I want to create a single patch from multiple consecutive commits in my repository. However, the "Create Patch" button is greyed out as soon as I select more than one commit.

I've tried the command line method as answered here, and it works great. But is there a way to do it in IDEA's GUI? I think I should be able to do this somehow, since the tooltip says "Create Patch for selected revision(s)".

like image 358
awilke Avatar asked Nov 12 '22 06:11

awilke


1 Answers

Issue IDEA-106422 reports it is possible, but your problem could be linked to a setting.
What follows applies for git cherry, but check if it does for git patch as well.

It is possible. Just select several revisions and click the "Cherry" button.
Note that unless you've enabled Settings | Version Control | Git | "commit automatically on cherry-pick", you'll be prompted to review & commit each cherry-pick one by one. Maybe this is what confuses you?

like image 67
VonC Avatar answered Nov 14 '22 21:11

VonC