Resume a merge conflict resolution at a later time

523 Views Asked by At

Situation

I'm merging files and I stopped because it was time to call it a day, but I hadn't finished the merge.

Problem

I wanted to make sure that I could resume the merge, and I couldn't find any information about this online so I tried it myself. The result being that I now have a partially merged filed, and the .orig, but not the modified local or remote.

Question

How do I resume this partial merge conflict resolution without having to start all over again?

What I did, exactly.

I merged a commit in to the current branch. Then I ran git mergetool which is meld. I said "ugh. . .its getting late, I can finish tomorrow." and saved all three files. Then I thought "maybe I should check to make sure I CAN resume tomorrow" so I try git mergetool again, but it says tells me that no files need merging.

I then do nothing and leave it in an uncommitted state thinking that at this point I can only do more harm.

What I've found.

The closest thing I've found that might be helpful is Reconflict the merge, after incorrect manual merge conflict resolution which isn't especially helpful.

What this would suggest is that I save what I have else where (ie mv file file.bu) do a hard reset, move the backup file back into place, then try the merge again so that I at least don't need to start completely over again.

However, since I haven't committed yet, unlike that poster, I figure there might be more i can do.

1

There are 1 best solutions below

0
On

Since you saved the files the easiest option maybe to restart the merge.