-
安装 beyond compare 软件
-
在 git 中配置
git config --local merge.tool bc3 : 合并工具起名为 bc3 git config --local mergetool.path '/usr/local/bin/bcomp' : 配置工具路径 git config --local mergetool.keepBackup false : 合并后不保留备份文件 --local 表示只在当前项目生效
-
应用
git mergetool
- 启动软件后,节目左右两边为冲突部分
- 中间为需要最终生成的部分
- 点击保存