Reputation: 3742
I use IntelliJ Idea with Git. When I pull from repository, I get Merge Conflict error.
On the bottom right of IDEA shows merging feature/branch-XXX
after the conflicts.
Now I want to abort this pull(merge).
I could reset the current branch to clean status. I could also abort the merging with TortoiseGit.
But how can I abort the merging conveniently with IDEA?
Upvotes: 8
Views: 15035
Reputation: 1323953
conveniently? Not yet (Sept. 2018), not before 2019.2 (see below)
This is what issue IDEA-119995 is for.
Git: provide possibility to abort merge process
Before 2019.2, you had to switch to the terminal and type git merge --abort
.
The related issue IDEA-122038 adds in May 2019:
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
So the option to abort should be available since IntelliJ IDEA 2019.2.
This is an image for cherry-pick, but it would apply to merge and rebase as well.
Upvotes: 16