Diff At a Windows command prompt enter the commands: git config --global diff.tool bc3 git config --global difftool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\"" git config --global difftool.prompt false To launch a diff with BC3, use the command"git difftool foofile.txt".
Merge At a Windows command prompt, enter the commands: git config --global merge.tool bc3 git config --global mergetool.bc3.cmd "\"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"" git config --global mergetool.bc3.trustExitCode true
但是我设置完之后还是用不了,后来找到了直接修改配置文件的方法。
配置文件通常存放在”C:\Users[用户名].gitconfig”,如果找不到也可以直接打开git bash cd ~ vi .gitconfig