| 用途 | 用可视化工具处理冲突文件 |
|---|---|
| 语法 | git mergetool [--tool=<名称>] |
| 常用工具 | vimdiff、kdiff3、meld、VS Code 等 |
配置与使用
配置与使用
git config --global merge.tool vimdiff
git config --global mergetool.keepBackup false
git mergetool
git mergetool --tool=meld src/app.js多数工具提供「四窗格」视图(base/ours/theirs/结果);处理完仍需 git add,工具调用不会自动提交。