Meld Git difftool / mergetool
Git users often use Meld to graphically resolve 2-way differences and 3-way merges.
Configure Git to use Meld:
git config --global diff.tool meld
git config --global merge.tool meldOn Windows, Meld can be installed by:
winget install -e --id Meld.MeldTroubleshooting
If Meld was installed manually and Git can’t find Meld, configure Git to use Meld by setting the path to Meld.exe like:
git config --global mergetool.meld.path "$Env:ProgramFiles\\meld\\Meld.exe"On Windows if also using MSYS2, don’t add Meld.exe to environment variable Path as it has libstdc++.dll that conflicts with MSYS2 G++. The symptom is the G++-built executable will segfault silently.
Alternatives:
- Visual Studio Code: Git difftool and mergetool
- Matlab can compare and merge segments of files with visdiff()