我已经将我的git设置为使用外部比较收费,DiffMerge。毕竟,如果我调用git diff,DiffMerge不会被调用,它会打开默认的git diff工具。
下面是我的gitconfig:
diff.tool=diffmerge
difftool.diffmerge.cmd=/Applications/DiffMerge.app/Contents/MacOS/diffmerge $LOCAL $REMOTE
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=/Applications/DiffMerge.app/Contents/MacOS/diffmerge --merge --result=$MERGED $LOCAL $BASE $REMOTE
mergetool.keepbackup=falsehttps://stackoverflow.com/questions/47592519
复制相似问题