我将 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 开始,应该可以使用中止选项。
这是一个用于 cherry-pick 的图像,但它也适用于 merge 和 rebase 。
关于git - IntelliJ Idea发生冲突时如何中止 merge ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52463238/