Last active
June 12, 2018 18:00
-
-
Save begroff/63e57c4b55448342c6548bd7135c1938 to your computer and use it in GitHub Desktop.
Git Config for Windows using Meld as diff/merge tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
autocrlf = false | |
editor = code --wait | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
cmd = meld "$LOCAL" "$REMOTE" | |
[merge] | |
tool = meld | |
conflictstyle = diff3 | |
[mergetool] | |
prompt = false | |
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" --output "$MERGED" | |
#cmd = meld "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED" | |
keepBackup = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
/c/Program\ Files\ \(x86\)/Meld/Meld.exe $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Visual Studio Code and git bash as the integrated terminal. Created the meld bash script and put it in bin folder created in my home directory. Added bin folder to my path environment variable so that I could run 'meld' from git bash command line.
In Windows updated path variable in the UI:
Inspired by the following resources:
https://blog.building-blocks.com/using-meld-as-a-git-merge-tool-on-windows/
https://stackoverflow.com/questions/34119866/setting-up-and-using-meld-as-your-git-difftool-and-mergetool