Click to read the original
For my git command line small white, git comes with a variety of contrasting tools, miss the previous SVN turtle + beyondcompare days ... After struggling with the GitHub client, I finally researched. The original git comparison can also call third-party tools, well done!
Below to the popular science if you set up a third-party comparison tool in Git.
Configure Git
Open the. Gitconfig profile (Windows C:\Users\Administrator [Administrator for your current user name], mac in ~/), add the following:
?
12345678 |
[ diff      tool = BC3 [difftool "BC3"      path = D:/program Files (x86)/beyond Compare 3/bcompare.exe [merge]      tool = BC3 [mergetool "      path = D:/program Files (x86)/beyond Compare 3/bcompare.exe |
Where path is your beyondcompare installation directory;
OK, let's try the effect.
Open your git project directory input
?
1 |
git difftool git difftool -t bc3 |
You will see
After entering enter, OK Beyondcompare starts ~
(tips can be called successfully if you can't call any letters like m in the terminal)
Go Git calls third-party comparison tool Beyondcompare