在Mavericks和Xcode 5.0.1之后使用git mergetool和opendiff时出错

时间:2013-11-01 13:58:34

标签: git mergetool opendiff

我只是安装OS X Maverics和Xcode 5.0.1,但现在当我尝试将git mergetoolopendiff一起使用时,我收到此错误:

Normal merge conflict for 'Assets/Scripts/Characters/MobAI.cs':
{local}: modified file
{remote}: modified file
Hit return to start merge resolution tool (opendiff): 
2013-11-01 11:51:11.980 opendiff[1706:1007] too few arguments
2013-11-01 11:51:11.985 opendiff[1706:1007] usage: opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile]

xcode-select路径为 /Applications/Xcode.app/Contents/Developer /

有什么想法吗?

1 个答案:

答案 0 :(得分:4)

这是我的情况:

git config -l

(缩写输出)

merge.tool=opendiff
mergetool.opendiff.cmd=/usr/bin/opendiff $2 $5 -merge $1

我如何解决它:

git config --global --unset mergetool.opendiff.cmd