git - 使用 Intellij 创建 git 修订补丁

标签 git intellij-idea patch

有可能吗?

通过选择项目历史中的特定版本,右键单击它并选择创建补丁,它可以与 SourceTree 一起使用。
但是对于此设置,Intellij 中禁用了相同的选项。

最佳答案

它应该在版本控制选项卡中。 https://www.jetbrains.com/help/idea/2016.2/creating-patches.html

Creating Patches

IntelliJ IDEA suggests two ways of creating patches:

  1. On the base of revisions, either local or committed to the repository

  2. On the base of revisions stored in the local history.

To create a patch file

  1. 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.

  2. On the main Version Control menu or on the context menu of the selection, choose Create patch. enter image description here

  3. 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.

  4. Add a commit comment.

  5. 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.

关于git - 使用 Intellij 创建 git 修订补丁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38698845/

相关文章:

git - 将本地仓库推送到远程仓库的新子目录

java - 从 Mac 中删除 Java 8 JDK

model - Netlogo 中是否可以创建由补丁颜色定义的边界?

git - 管道 git diff 到 git apply

git - Unity 团队中的 .gitignore 相当于什么?

java - 尝试使用 EGit 将 GIT 项目从 IntelliJ IDEA 迁移到 Eclipse?

intellij-idea - 无法在 Windows 10 上的 Intellij idea 终端最新版本中输入任何内容

git - 解码 IntelliJ IDEA 文件夹名称颜色

diff - 使用 diff 的输出来创建补丁

git - 如何在 "git clone --depth=1"之后获取整个 git 历史记录?