Skip to content

Instantly share code, notes, and snippets.

@vitorhsb
Last active November 2, 2021 15:12
Show Gist options
  • Save vitorhsb/9744d9aba0ecd8500a145709fd13103b to your computer and use it in GitHub Desktop.
Save vitorhsb/9744d9aba0ecd8500a145709fd13103b to your computer and use it in GitHub Desktop.
Setup DiffMerge as Git merge and diff tool (Mac OS)
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd "/usr/local/bin/diffmerge --merge --result=\"\$MERGED\" \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\""
git config --global mergetool.diffmerge.trustExitCode true
git config --global mergetool.keepBackup false
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd "/usr/local/bin/diffmerge --nosplash \"\$LOCAL\" \"\$REMOTE\""
@aleksandrkarabatov
Copy link

bad config line 5 in file /Users/el314/.gitconfig

@aleksandrkarabatov
Copy link

your line is 2nd at least is bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment