Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a patch with Git Extensions

Is there a way to create a patch from selected commits in the user interface from Git Extensions?

I know how to export a patch trough command line, but I wonder if there is a similar functionality like in the TortoiseHg user interface (right click → Export -> ...)

So far I have only found the functionality to apply a patch in the user interface.

like image 591
Willem D'Haeseleer Avatar asked Jan 16 '13 15:01

Willem D'Haeseleer


2 Answers

Adding image, referenced git-extensions-documentation.readthedocs.org enter image description here

like image 146
Abhijeet Avatar answered Oct 16 '22 07:10

Abhijeet


You can use Commands -> Format patch. In the window that pops up, you can select multiple commits.

The result will be one patch file per commit. That's in line with the default behavior of git format-patch.

The UI unfortunatelly provides no way to put them all in one file. You could just use a simple script of some sort to put the contents of all the created patch files into one file.

like image 41
Daniel Hilgarth Avatar answered Oct 16 '22 07:10

Daniel Hilgarth