git - IntelliJ Idea发生冲突时如何中止 merge

标签 git intellij-idea

我将 IntelliJ Idea 与 Git 结合使用。当我从存储库中提取时,出现 merge 冲突错误。 IDEA右下方显示冲突后merging feature/branch-XXX。 现在我想中止这个 pull ( merge )。

我可以重置当前分支到干净状态。我还可以中止与 TortoiseGit 的 merge 。
但是如何方便地中止IDEA的 merge 呢?

最佳答案

方便吗?尚未(2018 年 9 月),2019.2 之前(见下文)

这就是issue IDEA-119995是为了。

Git: provide possibility to abort merge process

2019.2之前,必须切换到终端and type git merge --abort .


相关issue IDEA-122038 2019 年 5 月添加:

Cherry-pick now is recognized in the same way as rebase and merge, and indicated in the same way - Branch indicator in the status bar shows Cherry-picking in <branch>.

It is also possible to abort Cherry-pick in the same way - using Abort action in the Branches popup or VCS - Git menu

因此,从 IntelliJ IDEA 2019.2 开始,应该可以使用中止选项。

https://youtrack.jetbrains.com/api/files/74-659081?sign=MTU3ODc4NzIwMDAwMHwxMS0xfDc0LTY1OTA4MXw0ZEJuMHBNZnNZRnkxWjc2WlRaZk5SNlJ2VVdjMFF5bGlDMWVmanQ5dHc0PQ==&updated=1557149118930

这是一个用于 cherry-pick 的图像,但它也适用于 merge 和 rebase 。

关于git - IntelliJ Idea发生冲突时如何中止 merge ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52463238/

相关文章:

Android 支持子模块目录中的 V4 断开链接

git - 如果 git fetch 中途取消,它会恢复吗?

git - Azure Repos,带有用于创建 pull 请求的远程 URL

GitHub:同步失败

Git 远程在 git init 后不显示 master 或 origin

java - IntelliJ 重构以使用 LoD

git - 如何从 TortoiseGit 中删除本地 Git 仓库?

python - 禁用 Pycharm 打印自动完成

apache-spark - 如何为在 Intellij 中运行的 Spark 程序配置 log4j?

intellij-idea - 高效的 map 和过滤器组合与标准库