You can use any of the above keys or define a custom key of your own. If you want to see all pre-defined keys just run git difftool -tool-help command on Git Bash. This is a well-known key to Git corresponding to a particular version of well-known comparison tools available in the market ( bc3 corresponds to the third version of the Beyond Compare tool). Path = c:/program files/Beyond Compare 3/bcomp.exe The above command creates the below entry in the. You will know it in a short while): git config -global 'c:/program files/beyond compare 3/bcomp.exe' Then you run below command ( Running this command is redundant in this particular case and is required in some specialized cases only. gitconfig found in the %userprofile% directory: The above command creates the below entry in file.
The first command that we run is as below: git config -global diff.tool bc3 All the details that I've shared are equally useful for any diff tool in general, so I am sharing it here: Reproducing my answer from this question which was more specific to setting Beyond Compare as diff tool for Git.