console.l|

makalo

园龄:5年11个月粉丝:144关注:15

git配置Beyond Compare

git 和 Beyond Compare自行安装

查看电脑当前系统支持的git diff/git merge插件

git difftool --tool-help
git mergetool --tool-help

image-20220511174503786

image-20220511174614221

如果你的运行结果中,没有出现bc/bc3/bc4的话,那基本上可以放弃了,电脑可能会不支持

配置git

其中路径改成自己的

git config --global diff.tool bc4
git config --global difftool.prompt false
git config --global difftool.bc4.cmd '"D:\Beyond Compare 4\Beyond Compare 4\BCompare.exe" "$LOCAL" "$REMOTE"'

git config --global merge.tool bc4
git config --global mergetool.prompt false
git config --global mergetool.bc4.cmd '"D:\Beyond Compare 4\Beyond Compare 4\BCompare.exe" "$LOCAL" "$REMOTE" 
"$BASE" "$MERGED"'
git config --global mergetool.bc4.trustexitcode true

image-20220511181720093

测试

# 提交时查看差异修改了什么
git difftool
# 合并时冲突修改
git mergetool

image-20220511182100557

image-20220511182114860

本文作者:makalo

本文链接:https://www.cnblogs.com/makalochen/p/16259143.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   makalo  阅读(1109)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起