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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top