git config --global diff.tool bc git config --global difftool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" # Windows example # For macOS: git config --global difftool.bc.path "/usr/local/bin/bcomp" # For Linux: git config --global difftool.bc.path "/usr/bin/bcomp"
Run this command in your repository:
The default git diff output is "unified diff" format, which shows changes inline. While functional, it has several limitations:
Use git difftool --dir-diff to open a single session with all changes, rather than a separate window for every file.
Before configuring Git, ensure Beyond Compare is installed on your system.