문제

I use DiffMerge for 3-way merges in git. I just completed a mandatory merge job but realized I missed something out and would like to remerge and use the same 3-way GUI functionality. When I tried:

git mergetool my/path/file.ext

I got

No files need merging

How can I force mergetool to be able to do a 3-way merge in a GUI again rather than saving the remote under a different name and fishing out for deltas?

도움이 되었습니까?

해결책

You can try and reset the file to its pre-merged state, as mentioned in "Git merging: Restart conflict resolution in a single file":

git checkout -m -- your/File

And then relaunch git mergetool.

That supposes you didn't completed the merge and made a commit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top