Use BeyondCompare to see difference between files in GIT

SharpCoder picture SharpCoder · Mar 26, 2014 · Viewed 19.5k times · Source

Before I commit my changes, I want to see the difference using BeyondCompare in GIT. How can I configure BeyondCompare to see difference in my files.

I looked at this link but it did not help.

BeyondCompare is installed at this location in my system: C:\program files\Beyond Compare\BCompare.exe

I ran following two commands:

 git config --global merge.tool bc

git config --global mergetool.bc.path "C:\program files\Beyond Compare\BCompare.exe"

I am using GIT on Windows 7.

Thanks !!

Answer

SharpCoder picture SharpCoder · Mar 26, 2014

This link tells the way to set up BeyondComapre as the diff tool in git

git config --global diff.tool bc3
git config --global difftool.bc3.path "c:/program files/beyond compare 3/bcomp.exe"

To launch a diff using Beyond Compare, use the command "git difftool foofile.txt".