Search code examples
gitbeyondcomparegit-difftool

How to make git difftool Beyond Compare to open new instances?


I'm using BeyondCompare as my git's difftool and it works fine in general.

However, if I have two git bash windows open, and from each command line I run something like

git difftool branchA branchB --dir-diff

Then the results will be shown in the same beyondCompare window.

Is it possible to make each git difftool command starts difftool (e.g. BeyondCompare) in individual instance? This would be quite helpful as I'm working with multiple desktops, maybe one on my own feature, another on a hotfix, then another on a code review, etc. , would like to have each desktop has its own git bash window, IDE, git difftool etc.


Solution

  • From v5 command line reference: you need parameter /solo. Something like this:

    git config --global diff.tool bcomp
    git config --global difftool.bcomp.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BComp.exe\" /solo \"\$LOCAL\" \"\$REMOTE\""