I know that I can view the difference between HEAD and current state with meld .
. But how can I view the differences between branches, for example master<
For Meld on macOS, add this to your ~/.gitconfig
as recommended by the maintainer of the macOS application, yousseb:
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
trustExitCode = true
cmd = open -W -a Meld --args \"$LOCAL\" \"$REMOTE\"
[merge]
tool = meld
[mergetool]
prompt = false
[mergetool "meld"]
trustExitCode = true
cmd = open -W -a Meld --args --auto-merge \"$LOCAL\" \"$BASE\" \"$REMOTE\" --output=\"$MERGED\"
You can omit the merge
configs if you would like.
@GutenYe's answer didn't work out for me due to automatic escaping and/or something with zsh
.