Git Difftool with Beyond Compare 3
git config --global diff.tool bc
git config --global difftool.bc.path "C:\Program Files (x86)\Beyond Compare 3\BComp.exe"
git config --global difftool.prompt false
git config --global merge.tool bc
git config --global mergetool.bc.path "C:\Program Files (x86)\Beyond Compare 3\BComp.exe"
git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt"
Git Difftool with Beyond Compare 3 - Linux
git config --global diff.tool bc git config --global difftool.bc.path '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe' git config --global difftool.prompt false git config --global merge.tool bc git config --global mergetool.bc.path '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe' git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt"
Git Difftool with Beyond Compare 3 - WSL2
nano ~/.gitconfig [difftool "bc"] cmd = '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe' \"$(wslpath -aw $LOCAL)\" \"$(wslpath -aw $REMOTE)\" trustExitCode = true
Carriage return line feeds
Windows uses CRLF (\r\n) whereas Linux and MacOS just use line feed (\n).
You can turn off warnings with
git config core.autocrlf true
No comments:
Post a Comment