商海惜 发表于 2016-5-17 11:38:52

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
   
页: [1]
查看完整版本: Mac下Git配置DiffMerge解决冲突