eclipse 如何在 IntelliJ IDEA 中创建补丁?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2055474/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create a patch in IntelliJ IDEA?
提问by Boris Pavlovi?
I've been using IntelliJ IDEA 9.0 Community Edition for some time after years living in Eclipse. One thing seems to be hard to find in it. I'd like to create a patch on some subfolder in my project. In Eclipse it is done using right click, Team, Create Patch.
在 Eclipse 中生活多年后,我一直在使用 IntelliJ IDEA 9.0 社区版。似乎很难在其中找到一件事。我想在我的项目中的某个子文件夹上创建一个补丁。在 Eclipse 中,它是通过右键单击、团队、创建补丁来完成的。
Does anybody know how to do that in IDEA?
有谁知道如何在 IDEA 中做到这一点?
回答by CrazyCoder
Use the Changesview. In the group by directorymode you can right click on the directory with changes and choose Create Patch from the context menu.
使用更改视图。在按目录分组模式下,您可以右键单击有更改的目录,然后从上下文菜单中选择“创建补丁”。
回答by Patrick
You can do a right click Local History -> Show History and then choose a revision and click on patch button (the second from the left)
您可以右键单击“本地历史”->“显示历史”,然后选择一个修订版并单击“补丁”按钮(左起第二个)
回答by am0wa
In the Local Changestab or the Repository(SVN)/Log(Git) tab of the Version Controltool window, select a change or changelist you want to create a patch for and click Create Patchfrom the context menu.
在版本控制工具窗口的本地更改选项卡或存储库(SVN)/日志(Git) 选项卡中,选择要为其创建补丁的更改或更改列表,然后从上下文菜单中单击创建补丁。
P.S. relevant for all versions
PS适用于所有版本