使用 Intellij 创建 git 修订版的补丁
Creating patch of a git revision with Intellij
有可能吗?
通过在项目历史中选择一个特定版本,右键单击它并选择 create patch
。
它与 SourceTree 一起工作
但此设置在 Intellij 中禁用了相同的选项。
它应该在版本控制选项卡中。
https://www.jetbrains.com/help/idea/2016.2/creating-patches.html
Creating Patches
IntelliJ IDEA suggests two ways of creating patches:
On the base of revisions, either local or committed to the repository
On the base of revisions stored in the local history.
To create a patch file
In the Local Changes tab or the Repository tab of the Version Control
tool window, select a change or changelist you want to create a patch
for.
On the main Version Control menu or on the context menu of the
selection, choose Create patch.
In the Create Patch dialog box that opens, review the list
of changed files, and make sure that the files to be included in the
patch are selected.
Add a commit comment.
Click Create patch.
You can also create
patch on the base of your local history. To do that, open the local
history view for the desired directory, file or code fragment, as
described in the section Using Local History, right-click the desired
revision, and choose the Create Patch command on the context menu, or
click the create patch button img on the toolbar.
有可能吗?
通过在项目历史中选择一个特定版本,右键单击它并选择 create patch
。
它与 SourceTree 一起工作
但此设置在 Intellij 中禁用了相同的选项。
它应该在版本控制选项卡中。 https://www.jetbrains.com/help/idea/2016.2/creating-patches.html
Creating Patches
IntelliJ IDEA suggests two ways of creating patches:
On the base of revisions, either local or committed to the repository
On the base of revisions stored in the local history.
To create a patch file
In the Local Changes tab or the Repository tab of the Version Control tool window, select a change or changelist you want to create a patch for.
On the main Version Control menu or on the context menu of the selection, choose Create patch.
In the Create Patch dialog box that opens, review the list of changed files, and make sure that the files to be included in the patch are selected.
Add a commit comment.
Click Create patch.
You can also create patch on the base of your local history. To do that, open the local history view for the desired directory, file or code fragment, as described in the section Using Local History, right-click the desired revision, and choose the Create Patch command on the context menu, or click the create patch button img on the toolbar.