Git Difftool

May 5, 2021

I am so used to work with jetbrain tools that I seldom use git diff and almost never configure and special diff tool. Today I learned how to setup meld as diff tool,

I added this settings to my ~/.gitconfig

[diff]
    tool = meld
[difftool]
    prompt = false
[difftool "meld"]
    cmd = meld "$LOCAL" "$REMOTE"

You can change the order of the diff panes by changing the meld command arguments

[difftool "meld"]
cmd = meld "$REMOTE" "$LOCAL"  # remote changes will appear in the right pane, local in the left

Do you want to know something?→Click!