现在的位置: 首页 > 综合 > 正文

Mac下Git配置DiffMerge解决冲突

2018年04月08日 ⁄ 综合 ⁄ 共 483字 ⁄ 字号 评论关闭

参考文章:

http://twobitlabs.com/2011/08/install-diffmerge-git-mac-os-x/

 

注意问题:

1、下载时要下载:Download
the DiffMerge OS X installer

2、在command中执行命令:

git config --global diff.tool
diffmerge

git config --global difftool.diffmerge.cmd 'diffmerge
"$LOCAL" "$REMOTE"'

git config --global merge.tool
diffmerge

git config --global mergetool.diffmerge.cmd 'diffmerge
--merge --result="$MERGED" "$LOCAL" "$(if test -f "$BASE"; then echo "$BASE"; else echo "$LOCAL"; fi)" "$REMOTE"'

git config --global mergetool.diffmerge.trustExitCode true

【上篇】
【下篇】

抱歉!评论已关闭.