Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top