What is the correct way to config winmerge as merge tool under Windows, and using git-for-windows #1853
Replies: 4 comments 7 replies
-
First of all, I do not recommend WinMerge as a 3-way merge tool, as it is not superior to other tools. I haven't tried it yet, but I believe it would look something like this.
When merged automatically by WinMerge, conflicting locations are not marked as <<<< >>>>. The location pane shows the conflicts in red." Next Conflict" icon to go to the conflicted location. |
Beta Was this translation helpful? Give feedback.
-
Hi, @sdottaka thanks for the reply.
But I just see that winmerge is a tiny tool(only 20M+ bytes) which can do the job. I have tried kdiff3 under Windows, it has 300M+ bytes in my local disk, I'm not sure why a diff/merge tool need so much disk space. I just tried the
The option here There is one issue that after the merge, winmerge dose not give notification if it still has conflicts in the final file. Some guy in stackoverflow gives an workaround, see this post: https://stackoverflow.com/a/30699239/154911 with Vonc's last comment. So, can this be a feature request for winmerge? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. Yes, the I wrote a feature request here: It would be nice to notify the user if there are un-resolved conflicts in the merged file before winmerge closed · Issue #1855 · WinMerge/winmerge |
Beta Was this translation helpful? Give feedback.
-
Hi @sdottaka ,
What do you mean by that? Do you mean you recommend not to use WinMerge as a 3-way merge tool as it would be inferior to other tools? And if so, which other tools would be superior to WinMerge? |
Beta Was this translation helpful? Give feedback.
-
Hi, there are many discussion about this topic. I tried several, and I would like the winmerge devs' help.
This is what I'm currently using:
When I got a git rebase conflict, I just type the
git mergetool
in the bash shell under windows to fire the winmerge.Now, the winmerge gives me three panels. The left panel is titled as "Local", and the right panel is titled as "Remote". The middle title don't have a title, it just show the full file path of the currently merged file.
This file contains many
>>>>>>>>
and<<<<<<<<<
text which is marked as conflict places. Am I correct?Here are some other things I found in the internet, I'm not sure it is correct.
1, I found in this discussion, some one suggest use something like:
Note the
$MERGED
is put as the last option.While, if I use gitextensions/gitextensions: Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019)., the suggest command is something like:
But when I used this suggest command, I see the git merge does not shown correctly. Though in the middle panel, their is no text with
<<<<<<<<<
or>>>>>>>>>>
, but the middle panel is not the automatically merged files, and I guess the middle file are wrong.2, I found many other resources and discussion here:
How can I make WinMerge my git mergetool?, but it has too many answers, and I don't know I would follow which one.
3, I found another discussion in How to properly use 3 way automatic merge? · WinMerge/winmerge · Discussion #1156, but sadly, it is hard to understand the texts below:
Can you explain it?
4, when I looked at the winmerge command line option document page: Command line - WinMerge 2.16 Manual, some options are marked as TBD, I'm not sure why they are not defined?
Also, there is a section named: Resolving conflict files, can this option be used in git's merge tool config setting?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions