GitKraken 应该算是 macOS 下最好的 Git GUI 工具了,而 Beyond Compare 应该就算是全平台上最好的代码对比工具。
在 macOS 下配置 GitKraken 使用 Beyond Compare 步骤如下:
1.安装 BeyondCompare 的命令行工具
![](https://img.haomeiwen.com/i48490/35b5866838941046.png)
2.配置 Git Config 文件
打开终端,设置 git 的配置文件:
Diff
git config --global diff.tool bc3
To launch a diff using Beyond Compare, use the command: git difftool file.ext
Merge (Pro only)
git config --global merge.tool bc3
git config --global mergetool.bc3 trustExitCode true
To launch a 3-way merge using Beyond Compare, use the command: git mergetool file.ext
配置好了后在 GitKraken 的设置中选择对应的 Beyond Compare 即可。
![](https://img.haomeiwen.com/i48490/25ab24ad99c3ba73.png)
另外如果要配置 Windows 平台参见 http://stackoverflow.com/questions/2069490/git-diff-with-beyond-compare
网友评论