Mac下Git配置DiffMerge解决冲突

参考文章:

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

 

猜你喜欢

转载自quding0308.iteye.com/blog/1969831
今日推荐